mod_xsendfile
mod_xsendfile copied to clipboard
Partial results are valid but processing is incomplete: xsendfile: unable to stat file
Apache version: 2.2 OS: Windows XP Pro 64-bit
Getting the following error: (70008) Partial results are valid but processing is incomplete: xsendfile: unable to stat file: //server_name/folder/file
The module works fine on Windows XP Pro 32-bit. Possibly related to this: http://dev.ariel-networks.com/apr/apr-tutorial/html/apr-tutorial-5.html and this: https://issues.apache.org/bugzilla/show_bug.cgi?id=51020
I put a quick fix/hack on my side to make it work in our environment:
Changed this line: if ((rv = apr_file_info_get(&finfo, APR_FINFO_NORM, fd)) != APR_SUCCESS)
To this line: if ((rv = apr_file_info_get(&finfo, APR_FINFO_NORM, fd)) != APR_SUCCESS && (rv = apr_file_info_get(&finfo, APR_FINFO_NORM, fd)) != APR_INCOMPLETE)
More details here: http://www.calazan.com/apache-2-2-partial-results-are-valid-but-processing-is-incomplete-unable-to-stat-file-x-sendfile/
Thanks!
Just wanted to note that the ideal solution to this problem would be Apache APR fixing the methods used to query permissions (GetEffectiveRightsFromAcl http://support.microsoft.com/kb/2018746). I've logged a bug with them but I'd still love to see a fix in mod_xsendfile, as I don't even know if they can or will fix the issue or when they'll get around to it.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51560
Cheers
This has been open for a while. Will this issue be officially resolved and made part of a release?
I don't know if the developer has decided how to handle this fix as it's a tricky problem. The real error is with Apache's own "Apache Portable Runtime". If the developer fixes it in his module, it'll not check if it has access to the file properly (won't allow for permissions) which might cause people unexpected issues. Or he can wait for Apache to fix APR on Windows, which would in turn fix his module without any changes.
If you're still being affected by this issue, use the link I mentioned above and vote up the bug to get it more attention :)
mod_fcgid seems to have fixed this in their module (no apr fix). I'll look into that...
In the mean time, my official recommendation is to use the work-around patch from comment 0, but I'm hesitant to merge that one directly into my tree.
Just wanted to add that I ran into this same issue (with the same workaround), but for me the backend was a FUSE-mounted GlusterFS volume. Took forever to track it down.
I ran into the same issue, hopefully a fix can be merged soon