Skip to content

Commit

Permalink
fix propfinds with depth 0
Browse files Browse the repository at this point in the history
  • Loading branch information
David Christofas committed Jun 2, 2022
1 parent 5af72f1 commit 2c1792e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions changelog/unreleased/depth-zero-propfind.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Bugfix: Fix propfinds with depth 0

Fixed the response for propfinds with depth 0. The response now doesn't contain the shares jail anymore.

https://github.com/owncloud/ocis/issues/3704
https://github.com/cs3org/reva/pull/2918
2 changes: 1 addition & 1 deletion internal/http/services/owncloud/ocdav/propfind/propfind.go
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ func (p *Handler) getResourceInfos(ctx context.Context, w http.ResponseWriter, r
resourceInfos := []*provider.ResourceInfo{
rootInfo, // PROPFIND always includes the root resource
}
if rootInfo.Type == provider.ResourceType_RESOURCE_TYPE_FILE {
if rootInfo.Type == provider.ResourceType_RESOURCE_TYPE_FILE || depth == net.DepthZero {
// no need to stat any other spaces, we got our file stat already
return resourceInfos, true, true
}
Expand Down

0 comments on commit 2c1792e

Please sign in to comment.