[Django] #26550: Underscore (_) is not allowed in domain names

1 view
Skip to first unread message

Django

unread,
Apr 26, 2016, 8:04:31 PM4/26/16
to django-...@googlegroups.com
#26550: Underscore (_) is not allowed in domain names
-------------------------------+--------------------
Reporter: fed239 | Owner: nobody
Type: Uncategorized | Status: new
Component: Uncategorized | Version: 1.8
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------
I'm using domain name like xxx_yyy.abc.com and I get "Bad Request (400)"
when DEBUG = False.

I happened to be so that split_domain_port(host) from
django/http/request.py returns a pair of empty strings as
host_validation_re doesn't allow underscore.

I agree that according to RFC it's not possible to have underscore in a
hostname, but here we are dealing with domain names and it's totally fine
to have underscore in a domain name.

--
Ticket URL: <https://code.djangoproject.com/ticket/26550>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Apr 26, 2016, 8:11:27 PM4/26/16
to django-...@googlegroups.com
#26550: Underscore (_) is not allowed in domain names
-------------------------------+--------------------------------------
Reporter: fed239 | Owner: nobody
Type: Uncategorized | Status: closed
Component: HTTP handling | Version: 1.8
Severity: Normal | Resolution: duplicate
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by timgraham):

* status: new => closed
* needs_better_patch: => 0
* component: Uncategorized => HTTP handling
* needs_tests: => 0
* needs_docs: => 0
* resolution: => duplicate


Comment:

Duplicate of #19952

--
Ticket URL: <https://code.djangoproject.com/ticket/26550#comment:1>

Reply all
Reply to author
Forward
0 new messages