Skip to content

Commit

Permalink
align some ocs status codes
Browse files Browse the repository at this point in the history
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
  • Loading branch information
butonic committed Feb 20, 2024
1 parent 283b39b commit 734860b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions changelog/unreleased/legacy-return-code.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Bugfix: We aligned some OCS return codes with oc10

https://github.com/cs3org/reva/pull/4529
https://github.com/owncloud/ocis/issues/1233
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ func (h *Handler) GetShare(w http.ResponseWriter, r *http.Request) {

if share == nil {
sublog.Debug().Msg("no share found with this id")
response.WriteOCSError(w, r, response.MetaNotFound.StatusCode, "share not found", nil)
response.WriteOCSError(w, r, response.MetaPathNotFound.StatusCode, "share not found", nil) // MetaNotFount with code 998 would be cleaner, but this is a legacy api
return
}

Expand Down

0 comments on commit 734860b

Please sign in to comment.