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

allow listing directory trash items by key #4818

Merged
merged 1 commit into from
Aug 23, 2024

Conversation

butonic
Copy link
Contributor

@butonic butonic commented Aug 21, 2024

The storageprovider now passes on the key without inventing a / as the relative path when it was not present at the end of the key. This allows differentiating requests that want to get the trash item of a folder itself (where the relative path is empty) or listing the children of a folder in the trash (where the relative path at least starts with a /).

We also fixed the /dav/spaces endpoint to not invent a / at the end of URLs to allow clients to actually make these different requests.

As a byproduct we now return the size of trashed items.

required by owncloud/ocis#9879

@butonic butonic force-pushed the trash-listing-bykey-fixes branch 2 times, most recently from 68e00dc to 6dec94e Compare August 21, 2024 14:42
@butonic butonic force-pushed the trash-listing-bykey-fixes branch 6 times, most recently from 6100655 to 6c4bbb5 Compare August 23, 2024 08:30
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
@butonic butonic force-pushed the trash-listing-bykey-fixes branch from 6c4bbb5 to fc52c0c Compare August 23, 2024 10:27
@butonic butonic merged commit cb6e3c0 into cs3org:edge Aug 23, 2024
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants