http.request does not support ipv6-formatted ipv4 addresses
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Django |
Unknown
|
Unknown
|
|||
python-django (Ubuntu) |
Fix Released
|
Medium
|
Jon Grimm | ||
Xenial |
Won't Fix
|
Medium
|
Jon Grimm |
Bug Description
SRU Template
[Impact]
* django-python is unable to use ipv6 formatted ipv4 addresses.
For example, Addresses of the form "::ffff:
* The upstream fix is available, simple, and provides an updated testcase to cover and regress-test.
[Test Case]
* The updated unit test case is probably the simplest way to verify.
* See tests/README.rst: Updated test case will fail without the accompanied fix.
$ PYTHONPATH=
Testing against Django installed in '/home/
Creating test database for alias 'default'...
Creating test database for alias 'other'...
.......
-------
PYTHONPATH=
Testing against Django installed in '/home/
Creating test database for alias 'default'...
Creating test database for alias 'other'...
.......
-------
Ran 43 tests in 0.016s
OK
[Regression Potential]
* Low potential for regression as validation regex becomes more permissive.
* Full unit test additionally run to ensure no new failures.
[Other Info]
* Backported from upstream with no modifications required.
-- original bug description --
Addresses of the form "::ffff:
The following diff addresses the problem.
--- django/
+++ django/
@@ -23,7 +23,7 @@
)
RAISE_ERROR = object()
-host_validation_re = re.compile(
+host_validation_re = re.compile(
class UnreadablePostE
tags: | added: patch |
Changed in python-django (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Medium |
tags: | added: bitesize |
Changed in python-django (Ubuntu): | |
assignee: | nobody → Jon Grimm (jgrimm) |
description: | updated |
Changed in python-django (Ubuntu Xenial): | |
importance: | Undecided → Low |
importance: | Low → Medium |
Changed in python-django (Ubuntu Xenial): | |
status: | New → Triaged |
assignee: | nobody → Jon Grimm (jgrimm) |
description: | updated |
Changed in python-django (Ubuntu Xenial): | |
status: | Triaged → In Progress |
Landed upstream in https:/ /github. com/django/ django/ commit/ ff0a5aff4f5eb2f 55fa4c45d316084 ee4d462d6d