Opened 11 years ago

Closed 11 years ago

#3721 defect closed fixed (fixed)

twistd web --wsgi=myapplication sends SCRIPT_NAME='/' and PATH_INFO='/foo/bar' to the application.

Reported by: David Reid Owned by: David Reid
Priority: normal Milestone:
Component: web Keywords:
Cc: Branch: branches/wsgi_script_name_root-3721
branch-diff, diff-cov, branch-cov, buildbot
Author: dreid


This causes urls to be built as photos/details/1 And this specifically also causes django to sometimes redirect to http://photos/details/1

Change History (6)

comment:1 Changed 11 years ago by David Reid

Status: newassigned

Robert Brewer says that SCRIPT_NAME could be either, but cherrypy and django's runserver both use an empty string.

comment:2 Changed 11 years ago by David Reid

Author: dreid
Branch: branches/wsgi_script_name_root-3721

(In [26542]) Branching to 'wsgi_script_name_root-3721'

comment:3 Changed 11 years ago by David Reid

(In [26554]) Refs #3721 - Fix the values of SCRIPT_NAME and PATH_INFO in certain cases.

comment:4 Changed 11 years ago by David Reid

Keywords: review added
Owner: David Reid deleted
Status: assignednew

comment:5 Changed 11 years ago by Michael Hudson-Doyle

Keywords: review removed
Owner: set to David Reid


comment:6 Changed 11 years ago by David Reid

Resolution: fixed
Status: newclosed

(In [26557]) Treat SCRIPT_NAME and PATH_INFO just like every other WSGI container.

Author: dreid Reviewer: mwh Fixes: #3721

Note: See TracTickets for help on using tickets.