See django/http/request.py
...
host_validation_re =
re.compile(r"^([a-z0-9.-]+|\[[a-f0-9]*:[a-f0-9\.:]+\])(:\d+)?$")
...
Currently when you run django on a IDN domain you get the following error
message: "The domain name provided is not valid according to RFC
1034/1035."
--
Ticket URL: <https://code.djangoproject.com/ticket/30875>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Old description:
> You cannot run django with an IDN domain since the django requests are
> only validated for ascii domains.
>
> See django/http/request.py
>
> ...
> host_validation_re =
> re.compile(r"^([a-z0-9.-]+|\[[a-f0-9]*:[a-f0-9\.:]+\])(:\d+)?$")
> ...
>
> Currently when you run django on a IDN domain you get the following error
> message: "The domain name provided is not valid according to RFC
> 1034/1035."
New description:
You cannot run django with an IDN domain since the django requests are
only validated for ascii domains.
See django/http/request.py
{{{
...
host_validation_re =
re.compile(r"^([a-z0-9.-]+|\[[a-f0-9]*:[a-f0-9\.:]+\])(:\d+)?$")
...
}}}
Currently when you run django on a IDN domain you get the following error
message: "The domain name provided is not valid according to RFC
1034/1035."
--
--
Ticket URL: <https://code.djangoproject.com/ticket/30875#comment:1>
Comment (by Claude Paroz):
Generally I think that HTTP headers should be IDNA-encoded (check in
https://tools.ietf.org/html/rfc7230). Maybe a bug in some client sending
bad header content?
--
Ticket URL: <https://code.djangoproject.com/ticket/30875#comment:2>
* component: Uncategorized => HTTP handling
--
Ticket URL: <https://code.djangoproject.com/ticket/30875#comment:3>
Comment (by mschaffenroth):
I figured out that we have a "_" in our domain name which is not an
allowed character according to the INDA standard
--
Ticket URL: <https://code.djangoproject.com/ticket/30875#comment:4>
* status: new => closed
* resolution: => invalid
--
Ticket URL: <https://code.djangoproject.com/ticket/30875#comment:5>
Comment (by Claude Paroz):
See #19952 for the underscore issue.
--
Ticket URL: <https://code.djangoproject.com/ticket/30875#comment:6>