Skip to content

Commit

Permalink
Fix OCM create share
Browse files Browse the repository at this point in the history
  • Loading branch information
2403905 committed Feb 24, 2025
1 parent a04df6f commit 1947fdb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions changelog/unreleased/fix-ocm-create-share.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Bugfix: Fix OCM create share

We fixed the OCM share fails on share creating if the federated instance is not reachable.

https://github.com/cs3org/reva/pull/5093
https://github.com/owncloud/ocis/issues/11046
3 changes: 3 additions & 0 deletions internal/grpc/services/gateway/ocmshareprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ func (s *svc) CreateOCMShare(ctx context.Context, req *ocm.CreateOCMShareRequest
if err != nil {
return nil, errors.Wrap(err, "gateway: error calling CreateOCMShare")
}
if res.GetStatus().GetCode() != rpc.Code_CODE_OK {
return res, nil
}

// add a grant to the storage provider so the share can efficiently be listed
// the grant does not grant any permissions. access is granted by the OCM link token
Expand Down

0 comments on commit 1947fdb

Please sign in to comment.