-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Labels
Description
⚠️ This issue respects the following points: ⚠️
- This is a bug, not a question or a configuration/webserver/proxy issue.
- This issue is not already reported on Github OR Nextcloud Community Forum (I've searched it).
- Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
- I agree to follow Nextcloud's Code of Conduct.
Bug description
When using the PROPFIND method in a collection that contains other collections and paginating to a page after the first one, no type tag is returned for collections any longer.
Steps to reproduce
- Start a dev environment
- Run the following command to get the first page of results
curl -D - --location --request PROPFIND 'stable31.local/remote.php/dav/files/admin/' \
--header 'Depth: 1' \
--header 'X-NC-Paginate: true' \
--header 'X-NC-Paginate-Count: 2' \
--header 'Content-Type: application/xml' \
--header 'Authorization: Basic YWRtaW46YWRtaW4=' \
--data '<?xml version="1.0"?>
<d:propfind xmlns:d="DAV:">
<d:prop>
<d:displayname /><d:resourcetype />
</d:prop>
</d:propfind>'- Observe that the response contains the
<d:collection/>tag for collections - Copy the value of the
X-NC-Paginate-Tokenand replace it in the next command - Run
curl --location --request PROPFIND 'stable31.local/remote.php/dav/files/admin/' \
--header 'Depth: 1' \
--header 'X-NC-Paginate: true' \
--header 'X-NC-Paginate-Count: 2' \
--header 'X-NC-Paginate-Offset: 2' \
--header 'X-NC-Paginate-Token: F+BD78AEFQMFmfPdmPB18WXJRotooJ3S' \
--header 'Content-Type: application/xml' \
--header 'Authorization: Basic YWRtaW46YWRtaW4=' \
--data '<?xml version="1.0"?>
<d:propfind xmlns:d="DAV:">
<d:prop>
<d:displayname /><d:resourcetype />
</d:prop>
</d:propfind>'- Observe that the tag
<d:collection/>is missing for collections
Expected behavior
Paginated requests should contain the <d:collection/> tag for collections.
Nextcloud Server version
master
Operating system
None
PHP engine version
None
Web server
None
Database engine version
None
Is this bug present after an update or on a fresh install?
None
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
- Default user-backend (database)
- LDAP/ Active Directory
- SSO - SAML
- Other
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
Reported in nextcloud/nextcloudfileproviderkit#95
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
☑️ Done