Skip to content

Commit

Permalink
fix public share type in propfinds (#2316)
Browse files Browse the repository at this point in the history
  • Loading branch information
David Christofas authored Dec 7, 2021
1 parent 147c0c2 commit 7f7f9ec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions changelog/unreleased/fix-propfind-sharetype.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Bugfix: Fix the share types in propfinds

The share types for public links were not correctly added to propfinds.

https://github.com/cs3org/reva/pull/2316
2 changes: 1 addition & 1 deletion internal/http/services/owncloud/ocdav/propfind.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ func (s *svc) propfindResponse(ctx context.Context, w http.ResponseWriter, r *ht
var linkshares map[string]struct{}
listResp, err := client.ListPublicShares(ctx, &link.ListPublicSharesRequest{Filters: filters})
if err == nil {
linkshares := make(map[string]struct{})
linkshares = make(map[string]struct{}, len(listResp.Share))
for i := range listResp.Share {
linkshares[listResp.Share[i].ResourceId.OpaqueId] = struct{}{}
}
Expand Down

0 comments on commit 7f7f9ec

Please sign in to comment.