You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mod_python-dev@quetz.apache.org by "Graham Dumpleton (JIRA)" <ji...@apache.org> on 2006/08/08 03:59:14 UTC

[jira] Updated: (MODPYTHON-84) req.sendfile(filename) sends an incorrect number of bytes when filename is a symlink

     [ http://issues.apache.org/jira/browse/MODPYTHON-84?page=all ]

Graham Dumpleton updated MODPYTHON-84:
--------------------------------------

    Fix Version/s: 3.3
                   3.2.10
                       (was: 3.2.8)

> 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
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 3.1.4, 3.1.3, 3.2.7
>            Reporter: Jim Gallacher
>         Assigned To: Graham Dumpleton
>             Fix For: 3.3, 3.2.10
>
>
> 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().

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira