Skip to content

Commit

Permalink
Get status code from recycle response (#1408)
Browse files Browse the repository at this point in the history
  • Loading branch information
IljaN authored Jan 20, 2021
1 parent c2cfefe commit a4b2d4a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions changelog/unreleased/ocis-fix-trashbin-status.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Bugfix: Get error status from trash-bin response

Previously the status code was gathered from the wrong response.

https://github.com/cs3org/reva/pull/1408
2 changes: 1 addition & 1 deletion internal/http/services/owncloud/ocdav/trashbin.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ func (h *TrashbinHandler) listTrashbin(w http.ResponseWriter, r *http.Request, s
}

if getRecycleRes.Status.Code != rpc.Code_CODE_OK {
HandleErrorStatus(&sublog, w, getHomeRes.Status)
HandleErrorStatus(&sublog, w, getRecycleRes.Status)
return
}

Expand Down

0 comments on commit a4b2d4a

Please sign in to comment.