Issue Details (XML | Word | Printable)

Key: MODPYTHON-67
Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Graham Dumpleton
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
mod_python

Make req.path_info writable.

Created: 22/Jul/05 08:38 PM   Updated: 05/Mar/06 02:15 PM
Return to search
Component/s: core
Affects Version/s: 3.2.7
Fix Version/s: 3.2.7

Time Tracking:
Not Specified

File Attachments:
  Size
File Licensed for inclusion in ASF works requestobject.c.diff 2005-07-22 08:41 PM Graham Dumpleton 2 kB

Resolution Date: 16/Oct/05 12:52 AM


 Description  « Hide
In current version of mod_python req.filename is writable, but
req.path_info isn't.

If req.path_info were writable it would more easily allow a middleware
stack to be implemented in mod_python. This is because a middleware
component could modify req.path_info as necessary as the path info is
progressively processed. This would be better than a middleware
component having to create a parallel request attribute just for this
purpose as by being able to change req.path_info existing handlers such
as mod_python.publisher which already look at req.filename and
req.path_info could still be utilised in various ways within the
middleware stack. Same for any handlers which third parties may have
developed. Thus would eliminate the need to copy existing handlers and
modify them to get them to work, a middleware component would simply
need to setup req.filename and req.path_info as appropriate and the
existing handlers would work unmodified.


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Graham Dumpleton made changes - 22/Jul/05 08:41 PM
Field Original Value New Value
Attachment requestobject.c.diff [ 12311359 ]
Jim Gallacher made changes - 16/Oct/05 12:52 AM
Fix Version/s 3.2.0 [ 11060 ]
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]
Graham Dumpleton made changes - 05/Mar/06 02:15 PM
Status Resolved [ 5 ] Closed [ 6 ]