Issue Details (XML | Word | Printable)

Key: MODPYTHON-84
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Graham Dumpleton
Reporter: Jim Gallacher
Votes: 0
Watchers: 0
Operations

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

req.sendfile(filename) sends an incorrect number of bytes when filename is a symlink

Created: 16/Oct/05 12:24 AM   Updated: 02/Apr/07 11:29 AM
Return to search
Component/s: core
Affects Version/s: 3.1.3, 3.1.4, 3.2.7
Fix Version/s: 3.2.10, 3.3.1

Time Tracking:
Not Specified

Resolution Date: 23/Jun/06 11:15 AM


 Description  « Hide
This issue was reported by Wim Heirman on the mod_python list:

When req.sendfile(filename) is called where filename is a symbolic link, only part of the file is sent to the client (as many bytes as there are characters in the symlink's file reference, so for a symlink pointing to '../index.html' returns the first 13 bytes of the correct file).

Wim suggested changing APR_READ to APR_FINFO_NORM in the apr_stat call in req_sendfile().

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Jim Gallacher made changes - 16/Oct/05 12:32 AM
Field Original Value New Value
Status Open [ 1 ] In Progress [ 3 ]
Jim Gallacher made changes - 23/Oct/05 11:16 PM
Fix Version/s 3.2 [ 11060 ]
Resolution Fixed [ 1 ]
Status In Progress [ 3 ] Resolved [ 5 ]
Graham Dumpleton made changes - 05/Mar/06 02:34 PM
Status Resolved [ 5 ] Closed [ 6 ]
Graham Dumpleton made changes - 14/Jun/06 06:37 PM
Assignee Jim Gallacher [ jgallacher ] Graham Dumpleton [ grahamd ]
Resolution Fixed [ 1 ]
Status Closed [ 6 ] Reopened [ 4 ]
Jim Gallacher made changes - 23/Jun/06 11:15 AM
Status Reopened [ 4 ] Resolved [ 5 ]
Fix Version/s 3.2.8 [ 12310840 ]
Fix Version/s 3.2.7 [ 11060 ]
Resolution Fixed [ 1 ]
Graham Dumpleton made changes - 08/Aug/06 01:57 AM
Fix Version/s 3.3 [ 12310101 ]
Fix Version/s 3.2.8 [ 12310840 ]
Fix Version/s 3.2.10 [ 12312029 ]
Graham Dumpleton made changes - 02/Apr/07 11:29 AM
Status Resolved [ 5 ] Closed [ 6 ]