Skip to content

Commit d2e98d3

Browse files
authored
Merge pull request #5093 from 2403905/issue-11046
Fix OCM create share
2 parents a04df6f + 1947fdb commit d2e98d3

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Bugfix: Fix OCM create share
2+
3+
We fixed the OCM share fails on share creating if the federated instance is not reachable.
4+
5+
https://github.com/cs3org/reva/pull/5093
6+
https://github.com/owncloud/ocis/issues/11046

internal/grpc/services/gateway/ocmshareprovider.go

+3
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ func (s *svc) CreateOCMShare(ctx context.Context, req *ocm.CreateOCMShareRequest
5656
if err != nil {
5757
return nil, errors.Wrap(err, "gateway: error calling CreateOCMShare")
5858
}
59+
if res.GetStatus().GetCode() != rpc.Code_CODE_OK {
60+
return res, nil
61+
}
5962

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

0 commit comments

Comments
 (0)