opencloud
opencloud copied to clipboard
Listing favorites fails
Describe the bug
Webdav REPORT with favorite filter rule fails with http 400.
Steps to reproduce
- Enable favorites by setting
FRONTEND_ENABLE_FAVORITEStotrue - Restart opencloud
- Visit the web ui
- Click on the
Favoriteslink in the left sidebar
Expected behavior
Favorites are listed.
Actual behavior
No favorites get listed. The underlying webdav REPORT request fails with http 400.
Additional context
- Logged in as
adminthe url ishttps://host.docker.internal:9200/remote.php/dav/files/admin - method:
REPORT - payload:
<oc:filter-files xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns">
<d:prop>
<oc:permissions/>
<oc:favorite/>
<oc:fileid/>
<oc:file-parent/>
<oc:name/>
<d:lockdiscovery/>
<d:activelock/>
<oc:owner-id/>
<oc:owner-display-name/>
<oc:remote-item-id/>
<oc:shareroot/>
<oc:share-types/>
<oc:privatelink/>
<d:getcontentlength/>
<oc:size/>
<d:getlastmodified/>
<d:getetag/>
<d:getcontenttype/>
<d:resourcetype/>
<oc:downloadURL/>
<oc:tags/>
<oc:audio/>
<oc:location/>
<oc:image/>
<oc:photo/>
<oc:has-preview/>
</d:prop>
<oc:filter-rules>
<oc:favorite>1</oc:favorite>
</oc:filter-rules>
</oc:filter-files>