Error uploading file to DAV

bbern - February 11, 2009 - 18:10
Project:DAV
Version:6.x-1.0-alpha3
Component:Miscellaneous
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

Drupal 6.9 hosted on MAMP.

I can connect to DAV from different clients on network, read directories and files, and create new directories which then show up in taxonomy. However, when I try to upload a file through webdav I receive the following error in Drupal falsely stating that the file was empty:

Type file
Date Wednesday, February 11, 2009 - 12:31
User XXX
Location http://localhost/drupal69/dav/WebDAV/Testing/test.txt
Referrer
Message The file converted from uri=, name=test.txt to application/octet-stream was not saved because it was empty.
Severity error
Hostname ::1
Operations

If this is a user error due to not being able to take a specific file format or the like, users should receive a more meaningful error message instead of this.

I received the following error in Mac's Finder when the upload failed:
"You cannot copy some of these items to the destination because their names are too long or contain invalid characters for the destination. Do you want to skip copying these items and continue copying the other items?

Here is the trace logging during the time of the upload:

#b60c45de T+0.035596 [RESPNSE] 2009-02-11 12:31:12.839742 200 OK
#b610059e T=0.000000 [REQUEST] 2009-02-11 12:31:13.003150 PROPFIND /drupal69/dav/WebDAV/Testing/ HTTP/1.1
#b610059e T+0.016735 [DAV ] PROPFIND(array('path' => '/WebDAV/Testing', 'depth' => '1', 'props' => array(array('name' => 'getlastmodified', 'xmlns' => 'DAV:'), array('name' => 'getcontentlength', 'xmlns' => 'DAV:'), array('name' => 'resourcetype', 'xmlns' => 'DAV:'), array('name' => 'appledoubleheader', 'xmlns' => 'http://www.apple.com/webdav_fs/props/'))));
#b610059e T+0.020947 [RESPNSE] 2009-02-11 12:31:13.022184 200 OK
#b612cade T=0.000000 [REQUEST] 2009-02-11 12:31:13.184287 PROPFIND /drupal69/dav/WebDAV/Testing/ HTTP/1.1
#b612cade T+0.015659 [DAV ] PROPFIND(array('path' => '/WebDAV/Testing', 'depth' => '1', 'props' => array(array('name' => 'getlastmodified', 'xmlns' => 'DAV:'), array('name' => 'getcontentlength', 'xmlns' => 'DAV:'), array('name' => 'resourcetype', 'xmlns' => 'DAV:'), array('name' => 'appledoubleheader', 'xmlns' => 'http://www.apple.com/webdav_fs/props/'))));
#b612cade T+0.019817 [RESPNSE] 2009-02-11 12:31:13.202711 200 OK
#b6158b94 T=0.000000 [REQUEST] 2009-02-11 12:31:13.364738 PROPFIND /drupal69/dav/WebDAV/Testing/ HTTP/1.1
#b6158b94 T+0.015839 [DAV ] PROPFIND(array('path' => '/WebDAV/Testing', 'depth' => '1', 'props' => array(array('name' => 'getlastmodified', 'xmlns' => 'DAV:'), array('name' => 'getcontentlength', 'xmlns' => 'DAV:'), array('name' => 'resourcetype', 'xmlns' => 'DAV:'), array('name' => 'appledoubleheader', 'xmlns' => 'http://www.apple.com/webdav_fs/props/'))));
#b6158b94 T+0.019989 [RESPNSE] 2009-02-11 12:31:13.383290 200 OK
#b66d13bb T=0.000000 [REQUEST] 2009-02-11 12:31:18.858412 PROPFIND /drupal69/dav/WebDAV/Testing/test.txt HTTP/1.1
#b66d13bb T+0.016309 [DAV ] PROPFIND(array('path' => '/WebDAV/Testing/test.txt', 'depth' => '0', 'props' => array(array('name' => 'getlastmodified', 'xmlns' => 'DAV:'), array('name' => 'getcontentlength', 'xmlns' => 'DAV:'), array('name' => 'resourcetype', 'xmlns' => 'DAV:'))));
#b66d13bb T+0.019860 [RESPNSE] 2009-02-11 12:31:18.876765 200 OK
#b67077bc T=0.000000 [REQUEST] 2009-02-11 12:31:19.031921 PROPFIND /drupal69/dav/WebDAV/Testing/test.txt HTTP/1.1
#b67077bc T+0.015122 [DAV ] PROPFIND(array('path' => '/WebDAV/Testing/test.txt', 'depth' => '0', 'props' => array(array('name' => 'getlastmodified', 'xmlns' => 'DAV:'), array('name' => 'getcontentlength', 'xmlns' => 'DAV:'), array('name' => 'resourcetype', 'xmlns' => 'DAV:'))));
#b67077bc T+0.018734 [RESPNSE] 2009-02-11 12:31:19.049270 200 OK
#b6731723 T=0.000000 [REQUEST] 2009-02-11 12:31:19.203902 PUT /drupal69/dav/WebDAV/Testing/test.txt HTTP/1.1
#b6731723 T+0.015579 [DAV ] PUT(array('path' => '/WebDAV/Testing/test.txt', 'content_length' => '0', 'content_type' => 'application/octet-stream', 'stream' => resource(stream)));
#b6731723 T+0.059217 [RESPNSE] 2009-02-11 12:31:19.261626 200 OK
#b69066b6 T=0.000000 [REQUEST] 2009-02-11 12:31:21.027781 PROPFIND /drupal69/dav/WebDAV/Testing/ HTTP/1.1
#b69066b6 T+0.015980 [DAV ] PROPFIND(array('path' => '/WebDAV/Testing', 'depth' => '1', 'props' => array(array('name' => 'getlastmodified', 'xmlns' => 'DAV:'), array('name' => 'getcontentlength', 'xmlns' => 'DAV:'), array('name' => 'resourcetype', 'xmlns' => 'DAV:'), array('name' => 'appledoubleheader', 'xmlns' => 'http://www.apple.com/webdav_fs/props/'))));
#b69066b6 T+0.020269 [RESPNSE] 2009-02-11 12:31:21.046444 200 OK
#b97e1708 T=0.000000 [REQUEST] 2009-02-11 12:32:07.924723 PROPFIND /drupal69/dav/WebDAV/Testing/ HTTP/1.1
#b97e1708 T+0.015303 [DAV ] PROPFIND(array('path' => '/WebDAV/Testing', 'depth' => '1', 'props' => array(array('name' => 'getlastmodified', 'xmlns' => 'DAV:'), array('name' => 'getcontentlength', 'xmlns' => 'DAV:'), array('name' => 'resourcetype', 'xmlns' => 'DAV:'), array('name' => 'appledoubleheader', 'xmlns' => 'http://www.apple.com/webdav_fs/props/'))));
#b97e1708 T+0.019332 [RESPNSE] 2009-02-11 12:32:07.942531 200 OK
#c190b909 T=0.000000 [REQUEST] 2009-02-11 12:34:17.048751 PROPFIND /drupal69/dav/WebDAV/Testing/ HTTP/1.1
#c190b909 T+0.019858 [DAV ] PROPFIND(array('path' => '/WebDAV/Testing', 'depth' => '0', 'props' => array(array('name' => 'getlastmodified', 'xmlns' => 'DAV:'), array('name' => 'getcontentlength', 'xmlns' => 'DAV:'), array('name' => 'resourcetype', 'xmlns' => 'DAV:'))));
#c190b909 T+0.023935 [RESPNSE] 2009-02-11 12:34:17.071076 200 OK
#c1938238 T=0.000000 [REQUEST] 2009-02-11 12:34:17.231305 PROPFIND /drupal69/dav/WebDAV/ HTTP/1.1
#c1938238 T+0.014917 [DAV ] PROPFIND(array('path' => '/WebDAV', 'depth' => '0', 'props' => array(array('name' => 'getlastmodified', 'xmlns' => 'DAV:'), array('name' => 'getcontentlength', 'xmlns' => 'DAV:'), array('name' => 'resourcetype', 'xmlns' => 'DAV:'))));
#c1938238 T+0.020862 [RESPNSE] 2009-02-11 12:34:17.250625 200 OK
#c1964f0b T=0.000000 [REQUEST] 2009-02-11 12:34:17.414811 PROPFIND /drupal69/dav/WebDAV/._Testing HTTP/1.1
#c1964f0b T+0.014955 [DAV ] PROPFIND(array('path' => '/WebDAV/._Testing', 'depth' => '0', 'props' => array(array('name' => 'getlastmodified', 'xmlns' => 'DAV:'), array('name' => 'getcontentlength', 'xmlns' => 'DAV:'), array('name' => 'resourcetype', 'xmlns' => 'DAV:'))));
#c1964f0b T+0.017181 [RESPNSE] 2009-02-11 12:34:17.430522 200 OK
#c1990e2c T=0.000000 [REQUEST] 2009-02-11 12:34:17.594844 PROPFIND /drupal69/dav/WebDAV/Testing/ HTTP/1.1
#c1990e2c T+0.015236 [DAV ] PROPFIND(array('path' => '/WebDAV/Testing', 'depth' => '1', 'props' => array(array('name' => 'getlastmodified', 'xmlns' => 'DAV:'), array('name' => 'getcontentlength', 'xmlns' => 'DAV:'), array('name' => 'resourcetype', 'xmlns' => 'DAV:'), array('name' => 'appledoubleheader', 'xmlns' => 'http://www.apple.com/webdav_fs/props/'))));
#c1990e2c T+0.019486 [RESPNSE] 2009-02-11 12:34:17.612825 200 OK

#1

2440media2 - April 15, 2009 - 14:01

We're having a similar issue but trying to copy from Windows XP, when trying to upload a file we get an error "An error occurred copying some or all of the selected files". Running Drupal 6.10 on Linux server.

The apache error log reads, "[Tue Apr 14 15:26:06 2009] [error] [client] client denied by server configuration: /home/drupal/public_html/dev/dav"

Any idea why?

 
 

Drupal is a registered trademark of Dries Buytaert.