WebDAVClient icon indicating copy to clipboard operation
WebDAVClient copied to clipboard

Item List from ownCloud does not get Collection=true for folders

Open Tallmaris opened this issue 8 years ago • 1 comments

Hi, This is the response from the PROPFIND call to ownCloud:

 <d:response>
  <d:href>/remote.php/webdav/xxxxxxxxxxxxxxxxxxx/</d:href>
  <d:propstat>
   <d:prop>
    <d:getlastmodified>Fri, 16 Sep 2016 08:00:22 GMT</d:getlastmodified>
    <d:resourcetype>
     <d:collection/>
    </d:resourcetype>
    <d:quota-used-bytes>24569936</d:quota-used-bytes>
    <d:quota-available-bytes>-3</d:quota-available-bytes>
    <d:getetag>&quot;57dba696c1d62&quot;</d:getetag>
   </d:prop>
   <d:status>HTTP/1.1 200 OK</d:status>
  </d:propstat>
 </d:response>

Even if the "resourcetype" is flagged as "collection", the resulting Item has IsCollection set to false.

Tallmaris avatar Sep 18 '17 09:09 Tallmaris

This seems to be happening only when using the NuGet package, as it seems fixed in the current codebase.

Any chance you will push a new version to NuGet?

Tallmaris avatar Sep 18 '17 11:09 Tallmaris