#33367: URLField throws ValueError instead of ValidationError on clean
---------------------------------------------+------------------------
               Reporter:  Florian Apolloner  |          Owner:  nobody
                   Type:  Uncategorized      |         Status:  new
              Component:  Uncategorized      |        Version:  dev
               Severity:  Normal             |       Keywords:
           Triage Stage:  Unreviewed         |      Has patch:  0
    Needs documentation:  0                  |    Needs tests:  1
Patch needs improvement:  0                  |  Easy pickings:  1
                  UI/UX:  0                  |
---------------------------------------------+------------------------
 {{{
 forms.URLField( ).clean('////]@N.AN')
 }}}
 results in:
 {{{
         ValueError: Invalid IPv6 URL
         Traceback (most recent call last):
           File "basic_fuzzer.py", line 22, in TestOneInput
           File "fuzzers.py", line 350, in test_forms_URLField
           File "django/forms/fields.py", line 151, in clean
           File "django/forms/fields.py", line 136, in run_validators
           File "django/core/validators.py", line 130, in __call__
           File "urllib/parse.py", line 440, in urlsplit
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33367>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/051.8e8737f3b8434c9592d0c31e8b1fd2eb%40djangoproject.com.

Reply via email to