httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Renner <michael.ren...@gmx.de>
Subject [users@httpd] mod_dav, XP-File Explorer and ErrorDocument 404
Date Mon, 23 Jan 2012 13:28:38 GMT
Moin,

I observe a strange behavior between my webdav server with apache 
2.2.21 and the MS file explorer from Windows XP.

Under normal circumstances an upload works in 2 steps: The file 
explorer checks (HEAD) if there is already a file with the same name. 
The apache give a 404 and after that the file exporer starts with the 
upload. That ends up with a 201.

server.domain.tld 192.168.0.1 - renner [23/Jan/2012:14:03:09 +0100] 
"HEAD /renner/in/live.png HTTP/1.1" 404 - "-" "Microsoft Data Access 
Internet Publishing Provider DAV" HEAD /renner/in/live.png   "HTTP/1.1" 
(-) -
server.domain.tld 192.168.0.1 - renner [23/Jan/2012:14:03:09 +0100] 
"PUT /renner/in/live.png HTTP/1.1" 201 198 "-" "Microsoft Data Access 
Internet Publishing Provider DAV" PUT /darennmi/in/live.png   "HTTP/1.1" 
(-) https://server.domain.tld/renner/in/live.png

This directory is not only used with webdav clients, it is also 
accessed by 'normal' browsers. Therefor I configured

ErrorDocument 404 http://www.domain.tld/my_fancy_not_found.html

to give users more information. But with this configuration statement 
the upload with the XP file explorer fails:

server.domain.tld 192.168.0.1 - renner [23/Jan/2012:14:13:14 +0100] 
"HEAD /renner/in/live.png HTTP/1.1" 302 - "-" "Microsoft Data Access 
Internet Publishing Provider DAV" HEAD /renner/in/live.png   "HTTP/1.1" 
(-) http://www.domain.tld/my_fancy_not_found.html


This is only a problem with the XP file explorer, not with other webdav 
clients like webdrive, konqueror or curl. And it only happens with the 
external html page. For comparison only the log entries with webdrive 
client

server.domain.tld 192.168.0.1 - renner[23/Jan/2012:14:22:43 +0100] 
"PROPFIND /renner HTTP/1.1" 207 3374 "-" "WebDrive 9.16.2385 DAV" 
PROPFIND /renner   "HTTP/1.1" (-) -
server.domain.tld 192.168.0.1 - renner [23/Jan/2012:14:22:43 +0100] 
"PROPFIND /renner/in HTTP/1.1" 207 7622 "-" "WebDrive 9.16.2385 DAV" 
PROPFIND /renner/in   "HTTP/1.1" (-) -
server.domain.tld 192.168.0.1 - renner [23/Jan/2012:14:22:46 +0100] 
"PUT /renner/in/live.png HTTP/1.1" 201 198 "-" "WebDrive 9.16.2385 DAV" 
PUT /renner/in/live.png   "HTTP/1.1" (-) 
https://server.domain.tld/renner/in/live.png
server.domain.tld 192.168.0.1 - renner [23/Jan/2012:14:22:46 +0100] 
"PROPFIND /renner/in/live.png HTTP/1.1" 207 901 "-" "WebDrive 9.16.2385 
DAV" PROPFIND /renner/in/live.png   "HTTP/1.1" (-) -
server.domain.tld 192.168.0.1 - renner [23/Jan/2012:14:22:46 +0100] 
"PROPPATCH /renner/in/live.png HTTP/1.1" 207 377 "-" "WebDrive 9.16.2385 
DAV" PROPPATCH /renner/in/live.png   "HTTP/1.1" (-) -


I guess this is more or less a bug, isn't it? Can I solve it server 
side without to do it without the external page?
CU
-- 
|Michael Renner      E-mail: michael.renner@gmx.de  |
|81541 Munich        skype: michael.renner.gmx.de   |
|Germany             Don't drink as root!      ESC:wq

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message