Skip to content

Commit

Permalink
fixed the response code when the role/permission is empty on the shar…
Browse files Browse the repository at this point in the history
…e update
  • Loading branch information
2403905 committed Jun 4, 2024
1 parent 634bf10 commit 199002a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions changelog/unreleased/fix-share-update.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Bugfix: Fix share update

We fixed the response code when the role/permission is empty on the share update


https://github.com/cs3org/reva/pull/4709
https://github.com/owncloud/ocis/issues/8747
Original file line number Diff line number Diff line change
Expand Up @@ -859,6 +859,9 @@ func (h *Handler) updateShare(w http.ResponseWriter, r *http.Request, share *col
case rpc.Code_CODE_LOCKED:
response.WriteOCSError(w, r, response.MetaLocked.StatusCode, uRes.GetStatus().GetMessage(), nil)
return
case rpc.Code_CODE_INVALID_ARGUMENT, rpc.Code_CODE_FAILED_PRECONDITION:
response.WriteOCSError(w, r, response.MetaBadRequest.StatusCode, uRes.GetStatus().GetMessage(), nil)
return
}
response.WriteOCSError(w, r, response.MetaServerError.StatusCode, "grpc update share request failed", err)
return
Expand Down

0 comments on commit 199002a

Please sign in to comment.