#21532: Django URLValidator fails on some valid URLs
-----------------------------+-------------------------------
     Reporter:  dbrgn        |      Owner:  nobody
         Type:  Bug          |     Status:  new
    Component:  Core (URLs)  |    Version:  1.6
     Severity:  Normal       |   Keywords:  validation, regex
 Triage Stage:  Unreviewed   |  Has patch:  0
Easy pickings:  0            |      UI/UX:  0
-----------------------------+-------------------------------
 This raises a ValidationError, even though the URL is valid:

 {{{
 #!python
 >>> from django.core.validators import URLValidator
 >>> validator = URLValidator()
 >>> validator('http://user:password@1.2.3.4:80/')
 Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File "/home/danilo/.virtualenvs/test/lib/python2.7/site-
 packages/django/core/validators.py", line 66, in __call__
     super(URLValidator, self).__call__(url)
   File "/home/danilo/.virtualenvs/test/lib/python2.7/site-
 packages/django/core/validators.py", line 39, in __call__
     raise ValidationError(self.message, code=self.code)
 django.core.exceptions.ValidationError
 }}}

 Maybe we need to go over the RegEx used? This could be used for testing:
 http://mathiasbynens.be/demo/url-regex

-- 
Ticket URL: <https://code.djangoproject.com/ticket/21532>
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/048.791f1a4bf2552563905a624b054b0b52%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to