[Cyberduck-trac] [Cyberduck] #6126: Folders are appearing as files

Cyberduck trac at trac.cyberduck.ch
Wed Aug 17 17:53:42 CEST 2011


#6126: Folders are appearing as files
---------------------------+------------------------
 Reporter:  Angusbradley   |         Owner:  dkocher
     Type:  defect         |        Status:  new
 Priority:  normal         |     Milestone:  4.1.2
Component:  webdav         |       Version:  4.1
 Severity:  normal         |    Resolution:
 Keywords:  webdav, ssl    |  Architecture:  Intel
 Platform:  Mac OS X 10.7  |
---------------------------+------------------------

Comment (by dkocher):

 Sample response from Zope server to `PROPFIND` request.

 {{{
 <?xml version="1.0" encoding="UTF-8"?>
 <d:multistatus xmlns:d="DAV:">
         <d:response>
                 <d:href>/webdavtest/</d:href>
                 <d:propstat
 xmlns:n="http://www.zope.org/propsets/default">
                         <d:prop>
                                 <n:title>WebDAV test
 f[0xc3][0x83][0xc2][0xbc]r Cyberduck</n:title>
                         </d:prop>
                         <d:status>HTTP/1.1 200 OK</d:status>
                 </d:propstat>
                 <d:propstat xmlns:n="DAV:">
                         <d:prop>
 <n:creationdate>1970-01-01T12:00:00Z</n:creationdate>
                                 <n:displayname>WebDAV test
 f[0xc3][0x83][0xc2][0xbc]r Cyberduck</n:displayname>
                                 <n:resourcetype>
                                         <n:collection/>
                                 </n:resourcetype>
                                 <n:getcontenttype/>
                                 <n:getcontentlength/>
                                 <n:source/>
                                 <n:supportedlock>
                                         <n:lockentry>
                                                 <d:lockscope>
                                                         <d:exclusive/>
                                                 </d:lockscope>
                                                 <d:locktype>
                                                         <d:write/>
                                                 </d:locktype>
                                         </n:lockentry>
                                 </n:supportedlock>
                                 <n:lockdiscovery>

 </n:lockdiscovery>
                                 <n:getlastmodified>Wed, 17 Aug 2011
 14:49:04 GMT</n:getlastmodified>
                         </d:prop>
                         <d:status>HTTP/1.1 200 OK</d:status>
                 </d:propstat>
         </d:response>
         <d:response>
                 <d:href>/webdavtest/acl_users</d:href>
                 <d:propstat xmlns:n="DAV:">
                         <d:prop>
 <n:creationdate>1970-01-01T12:00:00Z</n:creationdate>
                                 <n:displayname>U"
 ser Folder</n:displayname>
                                 <n:resourcetype/>
                                 <n:getcontenttype/>
                                 <n:getcontentlength/>
                                 <n:source/>
                                 <n:supportedlock>
                                         <n:lockentry>
                                                 <d:lockscope>
                                                         <d:exclusive/>
                                                 </d:lockscope>
                                                 <d:locktype>
                                                         <d:write/>
                                                 </d:locktype>
                                         </n:lockentry>
                                 </n:supportedlock>
                                 <n:lockdiscovery>

 </n:lockdiscovery>
                                 <n:getlastmodified>Wed, 17 Aug 2011
 14:46:48 GMT</n:getlastmodified>
                         </d:prop>
                         <d:status>HTTP/1.1 200 OK</d:status>
                 </d:propstat>
         </d:response>
         <d:response>
                 <d:href>/webdavtest/bild1.png</d:href>
                 <d:propstat
 xmlns:n="http://www.zope.org/propsets/default">
                         <d:prop>
                                 <n:title/>
                                 <n:content_type>image/png</n:content_type>
                         </d:prop>
                         <d:status>HTTP/1.1 200 OK</d:status>
                 </d:propstat>
                 <d:propstat xmlns:n="DAV:">
                         <d:prop>
 <n:creationdate>1970-01-01T12:00:00Z</n:creationdate>
                                 <n:displayname>bild1.png</n:displayname>
                                 <n:resourcetype/>
 <n:getcontenttype>image/png</n:getcontenttype>
 <n:getcontentlength>548358</n:getcontentlength>
                                 <n:source/>
                                 <n:supportedlock>
                                         <n:lockentry>
                                                 <d:lockscope>
                                                         <d:exclusive/>
                                                 </d:lockscope>
                                                 <d:locktype>
                                                         <d:write/>
                                                 </d:locktype>
                                         </n:lockentry>
                                 </n:supportedlock>
                                 <n:lockdiscovery>

 </n:lockdiscovery>
                                 <n:getlastmodified>Wed, 17 Aug 2011
 14:48:51 GMT</n:getlastmodified>
                         </d:prop>
                         <d:status>HTTP/1.1"
  200 OK</d:status>
                 </d:propstat>
         </d:response>
         <d:response>
                 <d:href>/webdavtest/folder1/</d:href>
                 <d:propstat
 xmlns:n="http://www.zope.org/propsets/default">
                         <d:prop>
                                 <n:title/>
                         </d:prop>
                         <d:status>HTTP/1.1 200 OK</d:status>
                 </d:propstat>
                 <d:propstat xmlns:n="DAV:">
                         <d:prop>
 <n:creationdate>1970-01-01T12:00:00Z</n:creationdate>
                                 <n:displayname>folder1</n:displayname>
                                 <n:resourcetype>
                                         <n:collection/>
                                 </n:resourcetype>
                                 <n:getcontenttype/>
                                 <n:getcontentlength/>
                                 <n:source/>
                                 <n:supportedlock>
                                         <n:lockentry>
                                                 <d:lockscope>
                                                         <d:exclusive/>
                                                 </d:lockscope>
                                                 <d:locktype>
                                                         <d:write/>
                                                 </d:locktype>
                                         </n:lockentry>
                                 </n:supportedlock>
                                 <n:lockdiscovery>

 </n:lockdiscovery>
                                 <n:getlastmodified>Wed, 17 Aug 2011
 14:50:18 GMT</n:getlastmodified>
                         </d:prop>
                         <d:status>HTTP/1.1 200 OK</d:status>
                 </d:propstat>
         </d:response>
 </d:multistatus>
 }}}

-- 
Ticket URL: <http://trac.cyberduck.ch/ticket/6126#comment:4>
Cyberduck <http://cyberduck.ch>
Open source FTP, SFTP, WebDAV, Cloud Files, Google Docs & Amazon S3 Browser for Mac & Windows.


More information about the Cyberduck-trac mailing list