Opened 7 months ago
Last modified 7 months ago
#35477 closed Bug
Django 5.1a1 - unexpected error message — at Initial Version
Reported by: | אורי | Owned by: | nobody |
---|---|---|---|
Component: | contrib.auth | Version: | 5.1 |
Severity: | Release blocker | Keywords: | |
Cc: | Fabian Braun, Natalia Bidart | Triage Stage: | Ready for checkin |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Hi,
I ran Speedy Net's tests with Django 5.1a1. Some tests failed with an unexpected error messages. These tests passed with Django versions 4.2.13 and 5.0.6.
To run these tests, run ./tests_manage_all_sites_with_all_warnings.sh test speedy.core.accounts.tests.test_views.EditProfileCredentialsViewEnglishTestCase --shuffle --test-all-languages
with Django==5.1a1
installed. Here are the error messages:
'new_password1': ['This password is too short. It must contain at least 8 characters.', 'This field is required.']
(the actual error message received)
'new_password1': ['This password is too short. It must contain at least 8 characters.']
(the expected error message)
It looks like the error message "This field is required."
is unexpected and doesn't appear with Django versions 4.2.13 and 5.0.6. Notice that this field was not missing but too short. A similar problem happens when the new password is too long.
Change History (2)
by , 7 months ago
Attachment: | Untitled 2024-05-24 a1.png added |
---|
by , 7 months ago
Attachment: | Untitled 2024-05-24 a2.png added |
---|