| Jim Gallacher (JIRA) 2006-06-23, 1:12 am |
| [ http://issues.apache.org/jira/brows...HON-84?page=all ]
Jim Gallacher resolved MODPYTHON-84:
------------------------------------
Fix Version: 3.2.8
(was: 3.2.7)
Resolution: Fixed
> req.sendfile(filename) sends an incorrect number of bytes when filename is a symlink
> ------------------------------------------------------------------------------------
>
> Key: MODPYTHON-84
> URL: http://issues.apache.org/jira/browse/MODPYTHON-84
> Project: mod_python
> Type: Bug
> Components: core
> Versions: 3.1.3, 3.2.7, 3.1.4
> Reporter: Jim Gallacher
> Assignee: Graham Dumpleton
> Fix For: 3.2.8
>
> 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().
|