-
Notifications
You must be signed in to change notification settings - Fork 184
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
Comments
This issue has been solved |
the issue was not true for |
Describe the bugwhile trying to PROFIND a list of resources in a folder with depth Steps to reproduceSteps to reproduce the behavior:
curl -ks -user:123456 -XPROPFIND -H "DEPTH:infinity" https://localhost:9200/dav/spaces/{{space-id}}/folder/ -v | xmllint --format - Expected behaviorUsing 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 behaviorUsing 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>
SetupPlease describe how you started the server and provide a list of relevant environment variables.
OCIS_VERSION=latest
BRANCH=master |
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:
uu1
simple-folder
simple-folder/sub
lorem.txt
simple-folder/lorem.txt
simple-folder/sub/lorem.txt
uu1
Expected behavior
Using Old webdav API
Actual behavior
Using spaces webdav API
Setup
Please describe how you started the server and provide a list of relevant environment variables.
Additional context
The text was updated successfully, but these errors were encountered: