Skip to content

Commit

Permalink
fix listing trash infinity
Browse files Browse the repository at this point in the history
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
  • Loading branch information
butonic committed Aug 23, 2024
1 parent dcad0d3 commit 1c9a043
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog/unreleased/trash-listing-bykey-fixes.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ We also fixed the `/dav/spaces` endpoint to not invent a `/` at the end of URLs

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

https://github.com/cs3org/reva/pull/4822
https://github.com/cs3org/reva/pull/4818
2 changes: 1 addition & 1 deletion internal/http/services/owncloud/ocdav/trashbin.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ func (h *TrashbinHandler) listTrashbin(w http.ResponseWriter, r *http.Request, s
for i := len(items) - 1; i >= 0; i-- {
// for i := range res.Infos {
if items[i].Type == provider.ResourceType_RESOURCE_TYPE_CONTAINER {
stack = append(stack, items[i].Key)
stack = append(stack, items[i].Key+"/") // fetch children of the item
}
}

Expand Down

0 comments on commit 1c9a043

Please sign in to comment.