Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#12683 closed (duplicate)

PATH_INFO must not be overridden when it matches the SCRIPT_NAME

Reported by: Gustavo Owned by: nobody
Component: HTTP handling Version: 1.1
Severity: Keywords: wsgi, path_info, script_name
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


In the WSGI handler (django.core.handlers.wsgi), you set the PATH_INFO to "/" if it equals the SCRIPT_NAME, as a workaround for #8490.

There's no sane way to work around this at the WSGI middleware/app level, so I'd suggest not to do nothing in Django and make sure it gets fixed in the affected servers instead.

People deploying Django applications should not investigate whether the path where they want to "mount" the application happens to be used as PATH_INFO too by such an application.

It's Lighttpd's fault after all.

Attachments (0)

Change History (3)

comment:1 in reply to: ↑ description Changed 4 years ago by Gustavo

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

Replying to Gustavo:

so I'd suggest not to do nothing in Django

Just in case, I meant "I'd suggest to do nothing in Django".

comment:2 follow-up: Changed 4 years ago by kmtracey

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

Isn't this #8874?

comment:3 in reply to: ↑ 2 Changed 4 years ago by Gustavo

Replying to kmtracey:

Isn't this #8874?

Yes, it is. Sorry!

Add Comment

Modify Ticket

Change Properties
<Author field>
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.