Skip to content

Commit

Permalink
Merge pull request #4529 from butonic/legacy-return-code
Browse files Browse the repository at this point in the history
align some ocs status codes
  • Loading branch information
butonic authored Feb 20, 2024
2 parents 283b39b + 734860b commit bdd0495
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 bdd0495

Please sign in to comment.