#16664: URLField's to_python method fails with ValueError on some urls on python
2.7
--------------------+----------------------------
 Reporter:  zigzag  |          Owner:  zigzag
     Type:  Bug     |         Status:  new
Milestone:          |      Component:  Forms
  Version:  SVN     |       Severity:  Normal
 Keywords:          |   Triage Stage:  Unreviewed
Has patch:  1       |  Easy pickings:  0
    UI/UX:  0       |
--------------------+----------------------------
 This happens cause an urlparse libraries of python 2.7 and <2.7 are very
 different - in 2.7 python urlparse on invalid IPv6 url (that may be
 http://[1080:0:0:0:8:800:200C:417A]/index.html - see
 [http://www.ietf.org/rfc/rfc2732.txt]) fails with !ValueError, but
 urlparse at py < 2.7 never raises an exception. For example,
 {{{
 #!python
 import urlparse
 print urlparse.urlsplit('http://[a')
 }}}
 will print '''!SplitResult(scheme='http', netloc='[a', path='', query='',
 fragment=!'') ''' on python 2.6 and will raise ValueError("Invalid IPv6
 URL") on python 2.7

-- 
Ticket URL: <https://code.djangoproject.com/ticket/16664>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to