Durationfield.clean fails to handle broken data
The actual input string was 'P3(3D'
=== Uncaught Python exception: ===
ValueError: could not convert string to float: '3(3'
Traceback (most recent call last):
File "basic_fuzzer.py", line 22, in TestOneInput
File "fuzzers.py", line 294, in test_forms_DurationField
File "django/forms/fields.py", line 149, in clean
File "django/forms/fields.py", line 502, in to_python
File "django/utils/dateparse.py", line 154, in parse_duration
File "django/utils/dateparse.py", line 154, in <dictcomp>
Change History
(7)
Description: |
modified (diff)
|
Description: |
modified (diff)
|
Owner: |
changed from nobody to Pedro Schlickmann Mendes
|
Status: |
new → assigned
|
Patch needs improvement: |
set
|
Patch needs improvement: |
unset
|
Triage Stage: |
Accepted → Ready for checkin
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
PR