Ticket #3721 defect closed fixed

Opened 4 years ago

Last modified 4 years ago

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

1

Changed 4 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.

2

Changed 4 years ago by dreid

  • branch set to branches/wsgi_script_name_root-3721
  • branch_author set to dreid

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

3

Changed 4 years ago by dreid

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

4

Changed 4 years ago by dreid

  • owner dreid deleted
  • keywords review added
  • status changed from assigned to new

5

Changed 4 years ago by mwh

  • keywords review removed
  • owner set to dreid

r=me.

6

Changed 4 years ago by dreid

  • status changed from new to closed
  • resolution set to fixed

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