[Bug 1611923] Re: http.request does not support ipv6-formatted ipv4 addresses

Jon Grimm jon.grimm at canonical.com
Tue Sep 20 15:17:37 UTC 2016


Quick IRC chat with Lamont.   Not a hard requirement for him personally,
but we've discussed its probably the right thing to do SRU into Xenial
at least for others.

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1611923

Title:
  http.request does not support ipv6-formatted ipv4 addresses

Status in Django:
  Unknown
Status in python-django package in Ubuntu:
  In Progress

Bug description:
  Addresses of the form "::ffff:169.254.169.254" are perfectly valid,
  but not supported by django's http.request.

  The following diff addresses the problem.

  --- django/http/request.py      2015-11-24 10:21:15.000000000 -0700
  +++ django/http/request.py.new  2016-08-10 13:12:17.459998895 -0600
  @@ -23,7 +23,7 @@
   )
   
   RAISE_ERROR = object()
  -host_validation_re = re.compile(r"^([a-z0-9.-]+|\[[a-f0-9]*:[a-f0-9:]+\])(:\d+)?$")
  +host_validation_re = re.compile(r"^([a-z0-9.-]+|\[[a-f0-9]*:[a-f0-9\.:]+\])(:\d+)?$")
   
   
   class UnreadablePostError(IOError):

To manage notifications about this bug go to:
https://bugs.launchpad.net/django/+bug/1611923/+subscriptions



More information about the Ubuntu-sponsors mailing list