From e6b4ff46f059808b18200f5e31add2bf40f49a0b Mon Sep 17 00:00:00 2001 From: Ilja Neumann Date: Tue, 19 Jan 2021 10:59:45 +0100 Subject: [PATCH] Get status code from recycle response --- changelog/unreleased/ocis-fix-trashbin-status.md | 5 +++++ internal/http/services/owncloud/ocdav/trashbin.go | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 changelog/unreleased/ocis-fix-trashbin-status.md diff --git a/changelog/unreleased/ocis-fix-trashbin-status.md b/changelog/unreleased/ocis-fix-trashbin-status.md new file mode 100644 index 0000000000..14e83ac797 --- /dev/null +++ b/changelog/unreleased/ocis-fix-trashbin-status.md @@ -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 \ No newline at end of file diff --git a/internal/http/services/owncloud/ocdav/trashbin.go b/internal/http/services/owncloud/ocdav/trashbin.go index 6bd980edc0..c734f7ab71 100644 --- a/internal/http/services/owncloud/ocdav/trashbin.go +++ b/internal/http/services/owncloud/ocdav/trashbin.go @@ -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 }