Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect response while listing resources of a folder with depth "infinity" using spaces webdav API #3073

Open
SagarGi opened this issue Feb 1, 2022 · 3 comments
Labels

Comments

@SagarGi
Copy link
Member

SagarGi commented Feb 1, 2022

Describe the bug

using spaces webdav API, the response to list resources of user with depth infinity the node contains duplication of the root folder and also response does not contain the content of sub folder.

Steps to reproduce

Steps to reproduce the behavior:

  1. create user uu1
  2. create folder simple-folder
  3. create folder simple-folder/sub
  4. upload lorem.txt
  5. upload simple-folder/lorem.txt
  6. upload simple-folder/sub/lorem.txt
  7. using spaces webdav api list the resources of the user uu1
curl -ks -uuu1:123456 -XPROPFIND -H "DEPTH:infinity" https://localhost:9200/dav/spaces/{{space-id}}/ -v | xmllint --format - 

Expected behavior

Using Old webdav API
<?xml version="1.0" encoding="utf-8"?>
<d:multistatus xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns" xmlns:oc="http://owncloud.org/ns">
  <d:response>
    <d:href>/webdav/</d:href>
    <d:propstat>
      <d:prop>
        <oc:id>MGVlOTBjYTgtYTc2Ny00ZmRlLTkxYTctYjJhMzVkYzg1ZDE4OjBlZTkwY2E4LWE3NjctNGZkZS05MWE3LWIyYTM1ZGM4NWQxOA==</oc:id>
        <oc:fileid>MGVlOTBjYTgtYTc2Ny00ZmRlLTkxYTctYjJhMzVkYzg1ZDE4OjBlZTkwY2E4LWE3NjctNGZkZS05MWE3LWIyYTM1ZGM4NWQxOA==</oc:fileid>
        <d:getetag>"68fb61ff529e7a8eb8d186e913e59b2e"</d:getetag>
        <oc:permissions>RDNVCK</oc:permissions>
        <d:resourcetype>
          <d:collection/>
        </d:resourcetype>
        <oc:size>0</oc:size>
        <d:getlastmodified>Tue, 01 Feb 2022 08:54:29 GMT</d:getlastmodified>
        <oc:favorite>0</oc:favorite>
      </d:prop>
      <d:status>HTTP/1.1 200 OK</d:status>
    </d:propstat>
  </d:response>
  <d:response>
    <d:href>/webdav/lorem.txt</d:href>
    <d:propstat>
      <d:prop>
        <oc:id>MGVlOTBjYTgtYTc2Ny00ZmRlLTkxYTctYjJhMzVkYzg1ZDE4OmNiM2Y1ZDE2LTkxZmMtNDk1Yy1hOWNkLThiZmIwYjAzZDg2Mg==</oc:id>
        <oc:fileid>MGVlOTBjYTgtYTc2Ny00ZmRlLTkxYTctYjJhMzVkYzg1ZDE4OmNiM2Y1ZDE2LTkxZmMtNDk1Yy1hOWNkLThiZmIwYjAzZDg2Mg==</oc:fileid>
        <d:getetag>"b50a1b263f6b9dc219d8dae3212ad396"</d:getetag>
        <oc:permissions>RDNVW</oc:permissions>
        <d:resourcetype/>
        <d:getcontentlength>0</d:getcontentlength>
        <d:getcontenttype>text/plain</d:getcontenttype>
        <d:getlastmodified>Tue, 01 Feb 2022 08:48:03 GMT</d:getlastmodified>
        <oc:checksums>
          <oc:checksum>SHA1:da39a3ee5e6b4b0d3255bfef95601890afd80709 MD5:d41d8cd98f00b204e9800998ecf8427e ADLER32:00000001</oc:checksum>
        </oc:checksums>
        <oc:favorite>0</oc:favorite>
      </d:prop>
      <d:status>HTTP/1.1 200 OK</d:status>
    </d:propstat>
  </d:response>
  <d:response>
    <d:href>/webdav/simple-folder/</d:href>
    <d:propstat>
      <d:prop>
        <oc:id>MGVlOTBjYTgtYTc2Ny00ZmRlLTkxYTctYjJhMzVkYzg1ZDE4OmI3ZDJjMTYwLWVhOWYtNGE5MS05YjY4LWYwNTM5ODQ5NDYzMA==</oc:id>
        <oc:fileid>MGVlOTBjYTgtYTc2Ny00ZmRlLTkxYTctYjJhMzVkYzg1ZDE4OmI3ZDJjMTYwLWVhOWYtNGE5MS05YjY4LWYwNTM5ODQ5NDYzMA==</oc:fileid>
        <d:getetag>"a8f2699729208e32054d6d203fce2de2"</d:getetag>
        <oc:permissions>RDNVCK</oc:permissions>
        <d:resourcetype>
          <d:collection/>
        </d:resourcetype>
        <oc:size>0</oc:size>
        <d:getlastmodified>Tue, 01 Feb 2022 08:54:29 GMT</d:getlastmodified>
        <oc:favorite>0</oc:favorite>
      </d:prop>
      <d:status>HTTP/1.1 200 OK</d:status>
    </d:propstat>
  </d:response>
  <d:response>
    <d:href>/webdav/.space/</d:href>
    <d:propstat>
      <d:prop>
        <oc:id>MGVlOTBjYTgtYTc2Ny00ZmRlLTkxYTctYjJhMzVkYzg1ZDE4OjAzNDY0MjlkLTQ0NzMtNDJlOS05NGI0LTA1NGVjMDQ3MDNiZg==</oc:id>
        <oc:fileid>MGVlOTBjYTgtYTc2Ny00ZmRlLTkxYTctYjJhMzVkYzg1ZDE4OjAzNDY0MjlkLTQ0NzMtNDJlOS05NGI0LTA1NGVjMDQ3MDNiZg==</oc:fileid>
        <d:getetag>"f6946749507a52fc2833d21edd1d8488"</d:getetag>
        <oc:permissions>SRDNVCK</oc:permissions>
        <d:resourcetype>
          <d:collection/>
        </d:resourcetype>
        <oc:size>0</oc:size>
        <d:getlastmodified>Tue, 01 Feb 2022 08:46:32 GMT</d:getlastmodified>
        <oc:favorite>0</oc:favorite>
      </d:prop>
      <d:status>HTTP/1.1 200 OK</d:status>
    </d:propstat>
  </d:response>
  <d:response>
    <d:href>/webdav/simple-folder/sub/</d:href>
    <d:propstat>
      <d:prop>
        <oc:id>MGVlOTBjYTgtYTc2Ny00ZmRlLTkxYTctYjJhMzVkYzg1ZDE4OjY1NGRkMDI0LTQwZTgtNGYwNS1iM2M3LTBiYjlkMWQ2MTY1Zg==</oc:id>
        <oc:fileid>MGVlOTBjYTgtYTc2Ny00ZmRlLTkxYTctYjJhMzVkYzg1ZDE4OjY1NGRkMDI0LTQwZTgtNGYwNS1iM2M3LTBiYjlkMWQ2MTY1Zg==</oc:fileid>
        <d:getetag>"8c0be33c8bf030da083b1fec75cfa13f"</d:getetag>
        <oc:permissions>RDNVCK</oc:permissions>
        <d:resourcetype>
          <d:collection/>
        </d:resourcetype>
        <oc:size>0</oc:size>
        <d:getlastmodified>Tue, 01 Feb 2022 08:48:47 GMT</d:getlastmodified>
        <oc:favorite>0</oc:favorite>
      </d:prop>
      <d:status>HTTP/1.1 200 OK</d:status>
    </d:propstat>
  </d:response>
  <d:response>
    <d:href>/webdav/simple-folder/lorem.txt</d:href>
    <d:propstat>
      <d:prop>
        <oc:id>MGVlOTBjYTgtYTc2Ny00ZmRlLTkxYTctYjJhMzVkYzg1ZDE4Ojk5NjhmYTkwLTM1MDAtNDRjNy04YzMxLTc0MDAwMjk2ZjczOQ==</oc:id>
        <oc:fileid>MGVlOTBjYTgtYTc2Ny00ZmRlLTkxYTctYjJhMzVkYzg1ZDE4Ojk5NjhmYTkwLTM1MDAtNDRjNy04YzMxLTc0MDAwMjk2ZjczOQ==</oc:fileid>
        <d:getetag>"fea5892834f432e4c145f6ba775e5f1b"</d:getetag>
        <oc:permissions>RDNVW</oc:permissions>
        <d:resourcetype/>
        <d:getcontentlength>0</d:getcontentlength>
        <d:getcontenttype>text/plain</d:getcontenttype>
        <d:getlastmodified>Tue, 01 Feb 2022 08:48:26 GMT</d:getlastmodified>
        <oc:checksums>
          <oc:checksum>SHA1:da39a3ee5e6b4b0d3255bfef95601890afd80709 MD5:d41d8cd98f00b204e9800998ecf8427e ADLER32:00000001</oc:checksum>
        </oc:checksums>
        <oc:favorite>0</oc:favorite>
      </d:prop>
      <d:status>HTTP/1.1 200 OK</d:status>
    </d:propstat>
  </d:response>
  <d:response>
    <d:href>/webdav/simple-folder/sub/lorem.txt</d:href>
    <d:propstat>
      <d:prop>
        <oc:id>MGVlOTBjYTgtYTc2Ny00ZmRlLTkxYTctYjJhMzVkYzg1ZDE4OmQ2MWVmM2NhLWJjOTctNDUxMy1iZmJmLTlkOTZhOGNiOGU4ZQ==</oc:id>
        <oc:fileid>MGVlOTBjYTgtYTc2Ny00ZmRlLTkxYTctYjJhMzVkYzg1ZDE4OmQ2MWVmM2NhLWJjOTctNDUxMy1iZmJmLTlkOTZhOGNiOGU4ZQ==</oc:fileid>
        <d:getetag>"3faa6b43c348cfdbbe085126a9da3a29"</d:getetag>
        <oc:permissions>RDNVW</oc:permissions>
        <d:resourcetype/>
        <d:getcontentlength>0</d:getcontentlength>
        <d:getcontenttype>text/plain</d:getcontenttype>
        <d:getlastmodified>Tue, 01 Feb 2022 08:48:47 GMT</d:getlastmodified>
        <oc:checksums>
          <oc:checksum>SHA1:da39a3ee5e6b4b0d3255bfef95601890afd80709 MD5:d41d8cd98f00b204e9800998ecf8427e ADLER32:00000001</oc:checksum>
        </oc:checksums>
        <oc:favorite>0</oc:favorite>
      </d:prop>
      <d:status>HTTP/1.1 200 OK</d:status>
    </d:propstat>
  </d:response>
  <d:response>
    <d:href>/webdav/Shares/</d:href>
    <d:propstat>
      <d:prop>
        <oc:id>YTBjYTZhOTAtYTM2NS00NzgyLTg3MWUtZDQ0NDQ3YmJjNjY4OmEwY2E2YTkwLWEzNjUtNDc4Mi04NzFlLWQ0NDQ0N2JiYzY2OA==</oc:id>
        <oc:fileid>YTBjYTZhOTAtYTM2NS00NzgyLTg3MWUtZDQ0NDQ3YmJjNjY4OmEwY2E2YTkwLWEzNjUtNDc4Mi04NzFlLWQ0NDQ0N2JiYzY2OA==</oc:fileid>
        <oc:permissions>S</oc:permissions>
        <d:resourcetype>
          <d:collection/>
        </d:resourcetype>
        <oc:size>0</oc:size>
        <d:getlastmodified>Thu, 01 Jan 1970 00:00:00 GMT</d:getlastmodified>
        <oc:favorite>0</oc:favorite>
      </d:prop>
      <d:status>HTTP/1.1 200 OK</d:status>
    </d:propstat>
  </d:response>
</d:multistatus>

Actual behavior

Using spaces webdav API
<?xml version="1.0" encoding="utf-8"?>
<d:multistatus xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns" xmlns:oc="http://owncloud.org/ns">
  <d:response>
    <d:href>/dav/spaces/0ee90ca8-a767-4fde-91a7-b2a35dc85d18/</d:href>
    <d:propstat>
      <d:prop>
        <oc:id>MGVlOTBjYTgtYTc2Ny00ZmRlLTkxYTctYjJhMzVkYzg1ZDE4OjBlZTkwY2E4LWE3NjctNGZkZS05MWE3LWIyYTM1ZGM4NWQxOA==</oc:id>
        <oc:fileid>MGVlOTBjYTgtYTc2Ny00ZmRlLTkxYTctYjJhMzVkYzg1ZDE4OjBlZTkwY2E4LWE3NjctNGZkZS05MWE3LWIyYTM1ZGM4NWQxOA==</oc:fileid>
        <d:getetag>"68fb61ff529e7a8eb8d186e913e59b2e"</d:getetag>
        <oc:permissions>RDNVCK</oc:permissions>
        <d:resourcetype>
          <d:collection/>
        </d:resourcetype>
        <oc:size>0</oc:size>
        <d:getlastmodified>Tue, 01 Feb 2022 08:54:29 GMT</d:getlastmodified>
        <oc:favorite>0</oc:favorite>
      </d:prop>
      <d:status>HTTP/1.1 200 OK</d:status>
    </d:propstat>
  </d:response>
  <d:response>
    <d:href>/dav/spaces/0ee90ca8-a767-4fde-91a7-b2a35dc85d18/lorem.txt</d:href>
    <d:propstat>
      <d:prop>
        <oc:id>MGVlOTBjYTgtYTc2Ny00ZmRlLTkxYTctYjJhMzVkYzg1ZDE4OmNiM2Y1ZDE2LTkxZmMtNDk1Yy1hOWNkLThiZmIwYjAzZDg2Mg==</oc:id>
        <oc:fileid>MGVlOTBjYTgtYTc2Ny00ZmRlLTkxYTctYjJhMzVkYzg1ZDE4OmNiM2Y1ZDE2LTkxZmMtNDk1Yy1hOWNkLThiZmIwYjAzZDg2Mg==</oc:fileid>
        <d:getetag>"b50a1b263f6b9dc219d8dae3212ad396"</d:getetag>
        <oc:permissions>RDNVW</oc:permissions>
        <d:resourcetype/>
        <d:getcontentlength>0</d:getcontentlength>
        <d:getcontenttype>text/plain</d:getcontenttype>
        <d:getlastmodified>Tue, 01 Feb 2022 08:48:03 GMT</d:getlastmodified>
        <oc:checksums>
          <oc:checksum>SHA1:da39a3ee5e6b4b0d3255bfef95601890afd80709 MD5:d41d8cd98f00b204e9800998ecf8427e ADLER32:00000001</oc:checksum>
        </oc:checksums>
        <oc:favorite>0</oc:favorite>
      </d:prop>
      <d:status>HTTP/1.1 200 OK</d:status>
    </d:propstat>
  </d:response>
  <d:response>
    <d:href>/dav/spaces/0ee90ca8-a767-4fde-91a7-b2a35dc85d18/simple-folder/</d:href>
    <d:propstat>
      <d:prop>
        <oc:id>MGVlOTBjYTgtYTc2Ny00ZmRlLTkxYTctYjJhMzVkYzg1ZDE4OmI3ZDJjMTYwLWVhOWYtNGE5MS05YjY4LWYwNTM5ODQ5NDYzMA==</oc:id>
        <oc:fileid>MGVlOTBjYTgtYTc2Ny00ZmRlLTkxYTctYjJhMzVkYzg1ZDE4OmI3ZDJjMTYwLWVhOWYtNGE5MS05YjY4LWYwNTM5ODQ5NDYzMA==</oc:fileid>
        <d:getetag>"a8f2699729208e32054d6d203fce2de2"</d:getetag>
        <oc:permissions>RDNVCK</oc:permissions>
        <d:resourcetype>
          <d:collection/>
        </d:resourcetype>
        <oc:size>0</oc:size>
        <d:getlastmodified>Tue, 01 Feb 2022 08:54:29 GMT</d:getlastmodified>
        <oc:favorite>0</oc:favorite>
      </d:prop>
      <d:status>HTTP/1.1 200 OK</d:status>
    </d:propstat>
  </d:response>
  <d:response>
    <d:href>/dav/spaces/0ee90ca8-a767-4fde-91a7-b2a35dc85d18/.space/</d:href>
    <d:propstat>
      <d:prop>
        <oc:id>MGVlOTBjYTgtYTc2Ny00ZmRlLTkxYTctYjJhMzVkYzg1ZDE4OjAzNDY0MjlkLTQ0NzMtNDJlOS05NGI0LTA1NGVjMDQ3MDNiZg==</oc:id>
        <oc:fileid>MGVlOTBjYTgtYTc2Ny00ZmRlLTkxYTctYjJhMzVkYzg1ZDE4OjAzNDY0MjlkLTQ0NzMtNDJlOS05NGI0LTA1NGVjMDQ3MDNiZg==</oc:fileid>
        <d:getetag>"f6946749507a52fc2833d21edd1d8488"</d:getetag>
        <oc:permissions>SRDNVCK</oc:permissions>
        <d:resourcetype>
          <d:collection/>
        </d:resourcetype>
        <oc:size>0</oc:size>
        <d:getlastmodified>Tue, 01 Feb 2022 08:46:32 GMT</d:getlastmodified>
        <oc:favorite>0</oc:favorite>
      </d:prop>
      <d:status>HTTP/1.1 200 OK</d:status>
    </d:propstat>
  </d:response>
  <d:response>
    <d:href>/dav/spaces/0ee90ca8-a767-4fde-91a7-b2a35dc85d18/simple-folder/simple-folder/sub/</d:href>
    <d:propstat>
      <d:prop>
        <oc:id>MGVlOTBjYTgtYTc2Ny00ZmRlLTkxYTctYjJhMzVkYzg1ZDE4OjY1NGRkMDI0LTQwZTgtNGYwNS1iM2M3LTBiYjlkMWQ2MTY1Zg==</oc:id>
        <oc:fileid>MGVlOTBjYTgtYTc2Ny00ZmRlLTkxYTctYjJhMzVkYzg1ZDE4OjY1NGRkMDI0LTQwZTgtNGYwNS1iM2M3LTBiYjlkMWQ2MTY1Zg==</oc:fileid>
        <d:getetag>"8c0be33c8bf030da083b1fec75cfa13f"</d:getetag>
        <oc:permissions>RDNVCK</oc:permissions>
        <d:resourcetype>
          <d:collection/>
        </d:resourcetype>
        <oc:size>0</oc:size>
        <d:getlastmodified>Tue, 01 Feb 2022 08:48:47 GMT</d:getlastmodified>
        <oc:favorite>0</oc:favorite>
      </d:prop>
      <d:status>HTTP/1.1 200 OK</d:status>
    </d:propstat>
  </d:response>
  <d:response>
    <d:href>/dav/spaces/0ee90ca8-a767-4fde-91a7-b2a35dc85d18/simple-folder/simple-folder/lorem.txt</d:href>
    <d:propstat>
      <d:prop>
        <oc:id>MGVlOTBjYTgtYTc2Ny00ZmRlLTkxYTctYjJhMzVkYzg1ZDE4Ojk5NjhmYTkwLTM1MDAtNDRjNy04YzMxLTc0MDAwMjk2ZjczOQ==</oc:id>
        <oc:fileid>MGVlOTBjYTgtYTc2Ny00ZmRlLTkxYTctYjJhMzVkYzg1ZDE4Ojk5NjhmYTkwLTM1MDAtNDRjNy04YzMxLTc0MDAwMjk2ZjczOQ==</oc:fileid>
        <d:getetag>"fea5892834f432e4c145f6ba775e5f1b"</d:getetag>
        <oc:permissions>RDNVW</oc:permissions>
        <d:resourcetype/>
        <d:getcontentlength>0</d:getcontentlength>
        <d:getcontenttype>text/plain</d:getcontenttype>
        <d:getlastmodified>Tue, 01 Feb 2022 08:48:26 GMT</d:getlastmodified>
        <oc:checksums>
          <oc:checksum>SHA1:da39a3ee5e6b4b0d3255bfef95601890afd80709 MD5:d41d8cd98f00b204e9800998ecf8427e ADLER32:00000001</oc:checksum>
        </oc:checksums>
        <oc:favorite>0</oc:favorite>
      </d:prop>
      <d:status>HTTP/1.1 200 OK</d:status>
    </d:propstat>
  </d:response>
</d:multistatus>

Setup

Please describe how you started the server and provide a list of relevant environment variables.

OCIS_VERSION=latest
BRANCH=master

Additional context

@amrita-shrestha
Copy link
Contributor

This issue has been solved

@SagarGi SagarGi changed the title Incorrect response while listing resources with depth "infinity" using spaces webdav API Incorrect response while listing resources of a folder with depth "infinity" using spaces webdav API Feb 7, 2022
@kiranparajuli589
Copy link
Contributor

kiranparajuli589 commented Feb 7, 2022

the issue was not true for propfind from root / but is true for propfind from some folders. @SagarGi will update the issue with reproduction steps, actual and expected reponses.

@SagarGi
Copy link
Member Author

SagarGi commented Feb 7, 2022

Describe the bug

while trying to PROFIND a list of resources in a folder with depth infinity, the response is the same as when we request to it as depth as 1

Steps to reproduce

Steps to reproduce the behavior:

  1. create user user
  2. create folder folder
  3. create folder folder/folder1
  4. create folder folder/folder1/folder2
  5. create folder folder/folder1/folder2/folder3
  6. upload lorem.txt
  7. upload folder/lorem.txt
  8. upload folder/folder1/lorem.txt
  9. using spaces webdav api list the resources of the user uu1
curl -ks -user:123456 -XPROPFIND -H "DEPTH:infinity" https://localhost:9200/dav/spaces/{{space-id}}/folder/ -v | xmllint --format - 

Expected behavior

Using Old webdav API
<?xml version="1.0" encoding="utf-8"?>
<d:multistatus xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns" xmlns:oc="http://owncloud.org/ns">
  <d:response>
    <d:href>/webdav/folder/</d:href>
    <d:propstat>
      <d:prop>
        <oc:id>NjA3ZGVkMzUtZjBmNi00NTQ0LTk5YzItNWUzMDYxZWQzMDVlOjhkMTY1MmNhLTVkOTEtNGZjOS1iNDJjLWNmNTg4MWZmNzZmNA==</oc:id>
        <oc:fileid>NjA3ZGVkMzUtZjBmNi00NTQ0LTk5YzItNWUzMDYxZWQzMDVlOjhkMTY1MmNhLTVkOTEtNGZjOS1iNDJjLWNmNTg4MWZmNzZmNA==</oc:fileid>
        <d:getetag>"cc7fc7d38aee221f694cdaf05c394065"</d:getetag>
        <oc:permissions>RDNVCK</oc:permissions>
        <d:resourcetype>
          <d:collection/>
        </d:resourcetype>
        <oc:size>0</oc:size>
        <d:getlastmodified>Mon, 07 Feb 2022 07:35:22 GMT</d:getlastmodified>
        <oc:favorite>0</oc:favorite>
      </d:prop>
      <d:status>HTTP/1.1 200 OK</d:status>
    </d:propstat>
  </d:response>
  <d:response>
    <d:href>/webdav/folder/lorem.txt</d:href>
    <d:propstat>
      <d:prop>
        <oc:id>NjA3ZGVkMzUtZjBmNi00NTQ0LTk5YzItNWUzMDYxZWQzMDVlOjcxMjNmNmY5LWIyNTEtNDg3MS05NTcyLTBkOThlYWM2YjEwNg==</oc:id>
        <oc:fileid>NjA3ZGVkMzUtZjBmNi00NTQ0LTk5YzItNWUzMDYxZWQzMDVlOjcxMjNmNmY5LWIyNTEtNDg3MS05NTcyLTBkOThlYWM2YjEwNg==</oc:fileid>
        <d:getetag>"594cec9793a5d3581cca7b6dcf3d8b04"</d:getetag>
        <oc:permissions>RDNVW</oc:permissions>
        <d:resourcetype/>
        <d:getcontentlength>0</d:getcontentlength>
        <d:getcontenttype>text/plain</d:getcontenttype>
        <d:getlastmodified>Mon, 07 Feb 2022 07:34:42 GMT</d:getlastmodified>
        <oc:checksums>
          <oc:checksum>SHA1:da39a3ee5e6b4b0d3255bfef95601890afd80709 MD5:d41d8cd98f00b204e9800998ecf8427e ADLER32:00000001</oc:checksum>
        </oc:checksums>
        <oc:favorite>0</oc:favorite>
      </d:prop>
      <d:status>HTTP/1.1 200 OK</d:status>
    </d:propstat>
  </d:response>
  <d:response>
    <d:href>/webdav/folder/folder1/</d:href>
    <d:propstat>
      <d:prop>
        <oc:id>NjA3ZGVkMzUtZjBmNi00NTQ0LTk5YzItNWUzMDYxZWQzMDVlOjI2MTlkZjAzLWVhOTAtNGQ3Yy04MmIyLTM2MzhiNGE5NjQ3Yw==</oc:id>
        <oc:fileid>NjA3ZGVkMzUtZjBmNi00NTQ0LTk5YzItNWUzMDYxZWQzMDVlOjI2MTlkZjAzLWVhOTAtNGQ3Yy04MmIyLTM2MzhiNGE5NjQ3Yw==</oc:fileid>
        <d:getetag>"e8721b85dc206fc7c420517b36d17415"</d:getetag>
        <oc:permissions>RDNVCK</oc:permissions>
        <d:resourcetype>
          <d:collection/>
        </d:resourcetype>
        <oc:size>0</oc:size>
        <d:getlastmodified>Mon, 07 Feb 2022 07:35:22 GMT</d:getlastmodified>
        <oc:favorite>0</oc:favorite>
      </d:prop>
      <d:status>HTTP/1.1 200 OK</d:status>
    </d:propstat>
  </d:response>
  <d:response>
    <d:href>/webdav/folder/folder1/lorem.txt</d:href>
    <d:propstat>
      <d:prop>
        <oc:id>NjA3ZGVkMzUtZjBmNi00NTQ0LTk5YzItNWUzMDYxZWQzMDVlOjVjYjM3NWJkLWRjNjMtNDlkMC04ODdlLTBhZTFmYWQzNTllNw==</oc:id>
        <oc:fileid>NjA3ZGVkMzUtZjBmNi00NTQ0LTk5YzItNWUzMDYxZWQzMDVlOjVjYjM3NWJkLWRjNjMtNDlkMC04ODdlLTBhZTFmYWQzNTllNw==</oc:fileid>
        <d:getetag>"5d85ed91b4272b159b42b19ec367ea7a"</d:getetag>
        <oc:permissions>RDNVW</oc:permissions>
        <d:resourcetype/>
        <d:getcontentlength>0</d:getcontentlength>
        <d:getcontenttype>text/plain</d:getcontenttype>
        <d:getlastmodified>Mon, 07 Feb 2022 07:35:22 GMT</d:getlastmodified>
        <oc:checksums>
          <oc:checksum>SHA1:da39a3ee5e6b4b0d3255bfef95601890afd80709 MD5:d41d8cd98f00b204e9800998ecf8427e ADLER32:00000001</oc:checksum>
        </oc:checksums>
        <oc:favorite>0</oc:favorite>
      </d:prop>
      <d:status>HTTP/1.1 200 OK</d:status>
    </d:propstat>
  </d:response>
  <d:response>
    <d:href>/webdav/folder/folder1/folder2/</d:href>
    <d:propstat>
      <d:prop>
        <oc:id>NjA3ZGVkMzUtZjBmNi00NTQ0LTk5YzItNWUzMDYxZWQzMDVlOjlmZjczYzkwLThlZjAtNDZmOS1iNTc5LTEwMTEwYjVmNzhhNQ==</oc:id>
        <oc:fileid>NjA3ZGVkMzUtZjBmNi00NTQ0LTk5YzItNWUzMDYxZWQzMDVlOjlmZjczYzkwLThlZjAtNDZmOS1iNTc5LTEwMTEwYjVmNzhhNQ==</oc:fileid>
        <d:getetag>"a238ca2e4effb63c40a6d1b606425786"</d:getetag>
        <oc:permissions>RDNVCK</oc:permissions>
        <d:resourcetype>
          <d:collection/>
        </d:resourcetype>
        <oc:size>0</oc:size>
        <d:getlastmodified>Mon, 07 Feb 2022 07:35:14 GMT</d:getlastmodified>
        <oc:favorite>0</oc:favorite>
      </d:prop>
      <d:status>HTTP/1.1 200 OK</d:status>
    </d:propstat>
  </d:response>
  <d:response>
    <d:href>/webdav/folder/folder1/folder2/folder3/</d:href>
    <d:propstat>
      <d:prop>
        <oc:id>NjA3ZGVkMzUtZjBmNi00NTQ0LTk5YzItNWUzMDYxZWQzMDVlOjM1NWIyMzhjLWZlZDYtNDA4YS05NjM3LWYyZTJkNGE0NWEzYQ==</oc:id>
        <oc:fileid>NjA3ZGVkMzUtZjBmNi00NTQ0LTk5YzItNWUzMDYxZWQzMDVlOjM1NWIyMzhjLWZlZDYtNDA4YS05NjM3LWYyZTJkNGE0NWEzYQ==</oc:fileid>
        <d:getetag>"eb0b02c702061006d799c602bd0bbfad"</d:getetag>
        <oc:permissions>RDNVCK</oc:permissions>
        <d:resourcetype>
          <d:collection/>
        </d:resourcetype>
        <oc:size>0</oc:size>
        <d:getlastmodified>Mon, 07 Feb 2022 07:35:14 GMT</d:getlastmodified>
        <oc:favorite>0</oc:favorite>
      </d:prop>
      <d:status>HTTP/1.1 200 OK</d:status>
    </d:propstat>
  </d:response>
</d:multistatus>

Actual behavior

Using spaces webdav API
<?xml version="1.0" encoding="utf-8"?>
<d:multistatus xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns" xmlns:oc="http://owncloud.org/ns">
  <d:response>
    <d:href>/dav/spaces/607ded35-f0f6-4544-99c2-5e3061ed305e/folder/</d:href>
    <d:propstat>
      <d:prop>
        <oc:id>NjA3ZGVkMzUtZjBmNi00NTQ0LTk5YzItNWUzMDYxZWQzMDVlOjhkMTY1MmNhLTVkOTEtNGZjOS1iNDJjLWNmNTg4MWZmNzZmNA==</oc:id>
        <oc:fileid>NjA3ZGVkMzUtZjBmNi00NTQ0LTk5YzItNWUzMDYxZWQzMDVlOjhkMTY1MmNhLTVkOTEtNGZjOS1iNDJjLWNmNTg4MWZmNzZmNA==</oc:fileid>
        <d:getetag>"f8f21de90a93d2bf96a9dd2aa444a654"</d:getetag>
        <oc:permissions>RDNVCK</oc:permissions>
        <d:resourcetype>
          <d:collection/>
        </d:resourcetype>
        <oc:size>0</oc:size>
        <d:getlastmodified>Mon, 07 Feb 2022 07:47:39 GMT</d:getlastmodified>
        <oc:favorite>0</oc:favorite>
      </d:prop>
      <d:status>HTTP/1.1 200 OK</d:status>
    </d:propstat>
  </d:response>
  <d:response>
    <d:href>/dav/spaces/607ded35-f0f6-4544-99c2-5e3061ed305e/folder/lorem.txt</d:href>
    <d:propstat>
      <d:prop>
        <oc:id>NjA3ZGVkMzUtZjBmNi00NTQ0LTk5YzItNWUzMDYxZWQzMDVlOjcxMjNmNmY5LWIyNTEtNDg3MS05NTcyLTBkOThlYWM2YjEwNg==</oc:id>
        <oc:fileid>NjA3ZGVkMzUtZjBmNi00NTQ0LTk5YzItNWUzMDYxZWQzMDVlOjcxMjNmNmY5LWIyNTEtNDg3MS05NTcyLTBkOThlYWM2YjEwNg==</oc:fileid>
        <d:getetag>"594cec9793a5d3581cca7b6dcf3d8b04"</d:getetag>
        <oc:permissions>RDNVW</oc:permissions>
        <d:resourcetype/>
        <d:getcontentlength>0</d:getcontentlength>
        <d:getcontenttype>text/plain</d:getcontenttype>
        <d:getlastmodified>Mon, 07 Feb 2022 07:34:42 GMT</d:getlastmodified>
        <oc:checksums>
          <oc:checksum>SHA1:da39a3ee5e6b4b0d3255bfef95601890afd80709 MD5:d41d8cd98f00b204e9800998ecf8427e ADLER32:00000001</oc:checksum>
        </oc:checksums>
        <oc:favorite>0</oc:favorite>
      </d:prop>
      <d:status>HTTP/1.1 200 OK</d:status>
    </d:propstat>
  </d:response>
  <d:response>
    <d:href>/dav/spaces/607ded35-f0f6-4544-99c2-5e3061ed305e/folder/folder1/</d:href>
    <d:propstat>
      <d:prop>
        <oc:id>NjA3ZGVkMzUtZjBmNi00NTQ0LTk5YzItNWUzMDYxZWQzMDVlOjI2MTlkZjAzLWVhOTAtNGQ3Yy04MmIyLTM2MzhiNGE5NjQ3Yw==</oc:id>
        <oc:fileid>NjA3ZGVkMzUtZjBmNi00NTQ0LTk5YzItNWUzMDYxZWQzMDVlOjI2MTlkZjAzLWVhOTAtNGQ3Yy04MmIyLTM2MzhiNGE5NjQ3Yw==</oc:fileid>
        <d:getetag>"24d2b803c58c3aca854de9d50c6a8274"</d:getetag>
        <oc:permissions>RDNVCK</oc:permissions>
        <d:resourcetype>
          <d:collection/>
        </d:resourcetype>
        <oc:size>0</oc:size>
        <d:getlastmodified>Mon, 07 Feb 2022 07:47:39 GMT</d:getlastmodified>
        <oc:favorite>0</oc:favorite>
      </d:prop>
      <d:status>HTTP/1.1 200 OK</d:status>
    </d:propstat>
  </d:response>
</d:multistatus>

Setup

Please describe how you started the server and provide a list of relevant environment variables.

OCIS_VERSION=latest
BRANCH=master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants