Ticket #49 (assigned defect)

Opened 2 years ago

Last modified 2 years ago

PATH_INFO & SCRIPT_NAME should be decoded

Reported by: trac Assigned to: asaddi (accepted)
Priority: major Milestone: flup.server-1.0.3
Component: flup.server Version: 1.0.2
Keywords: Cc: paulegan@mail.com

Description

WSGI requires the PATH_INFO & SCRIPT_NAME variables to be decoded.

See http://groups.google.com/group/python-web-sig/browse_frm/thread/2003e1c1ecce27b2 and http://wsgi.org/wsgi/WSGI_2.0#decoding-script-name-path-info.

I've attached a patch for AJP but the others also probably need to be fixed.

Attachments

decode_path_info.diff (1.0 kB) - added by trac on 02/02/10 23:01:32.
Patch for AJP server to decode PATH_INFO

Change History

02/02/10 23:01:32 changed by trac

  • attachment decode_path_info.diff added.

Patch for AJP server to decode PATH_INFO

02/12/10 11:05:10 changed by asaddi

  • status changed from new to assigned.

I'll have to look into this more.

I know there's something funny going on with REQUEST_URI and mod_jk/mod_proxy_ajp. I had to build a switch to enable/disable decoding in ajp-wsgi (one module decodes by default, the other doesn't).

Not sure if FastCGI/SCGI give their clients the raw REQUEST_URI or not.