[Django] #32760: Host value misinterpreted locally

9 views
Skip to first unread message

Django

unread,
May 18, 2021, 5:02:37 PM5/18/21
to django-...@googlegroups.com
#32760: Host value misinterpreted locally
--------------------------------------------+------------------------
Reporter: fargusplumdoodle | Owner: nobody
Type: Bug | Status: new
Component: HTTP handling | Version: 3.2
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
--------------------------------------------+------------------------
The value of {{{request.META["SERVER_NAME"]}}} does not match the host
that the request was made to.

When I add a host to my {{{/etc/hosts}}} file and make a request to it.

When the host is {{{localhost}}}, I am seeing that
{{{request.META["SERVER_NAME"]}}} is coming out as {{{3cdd0c05c30d}}}.

This issue does not appear to be happening in production for the company
that I work for. I am currently running Django inside of Docker Compose.

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

Django

unread,
May 18, 2021, 9:09:55 PM5/18/21
to django-...@googlegroups.com
#32760: Host value misinterpreted locally
--------------------------------+--------------------------------------
Reporter: Isaac Thiessen | Owner: nobody

Type: Bug | Status: new
Component: HTTP handling | Version: 3.2
Severity: Normal | Resolution:

Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------+--------------------------------------

Comment (by Tim Graham):

Can you explain where Django is at fault? Otherwise, I'm not sure there's
enough information here to debug your issue.

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

Django

unread,
May 19, 2021, 1:31:39 AM5/19/21
to django-...@googlegroups.com
#32760: Host value misinterpreted locally
--------------------------------+--------------------------------------
Reporter: Isaac Thiessen | Owner: nobody
Type: Bug | Status: closed

Component: HTTP handling | Version: 3.2
Severity: Normal | Resolution: needsinfo

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 Mariusz Felisiak):

* status: new => closed
* resolution: => needsinfo


--
Ticket URL: <https://code.djangoproject.com/ticket/32760#comment:2>

Reply all
Reply to author
Forward
0 new messages