Opened 5 years ago

Closed 5 years ago

#3721 defect closed fixed (fixed)

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

Reported by: dreid Owned by: dreid
Priority: normal Milestone:
Component: web Keywords:
Cc: Branch: branches/wsgi_script_name_root-3721
(diff, github, buildbot, log)
Author: dreid Launchpad Bug:

Description

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 5 years ago by dreid

  • Status changed from new to assigned

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

comment:2 Changed 5 years ago by dreid

  • Author set to dreid
  • Branch set to branches/wsgi_script_name_root-3721

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

comment:3 Changed 5 years ago by dreid

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

comment:4 Changed 5 years ago by dreid

  • Keywords review added
  • Owner dreid deleted
  • Status changed from assigned to new

comment:5 Changed 5 years ago by mwh

  • Keywords review removed
  • Owner set to dreid

r=me.

comment:6 Changed 5 years ago by dreid

  • Resolution set to fixed
  • Status changed from new to closed

(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.