Skip to content

Commit e6b4ff4

Browse files
committed
Get status code from recycle response
1 parent fcd6626 commit e6b4ff4

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Bugfix: Get error status from trash-bin response
2+
3+
Previously the status code was gathered from the wrong response.
4+
5+
https://github.com/cs3org/reva/pull/1408

internal/http/services/owncloud/ocdav/trashbin.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ func (h *TrashbinHandler) listTrashbin(w http.ResponseWriter, r *http.Request, s
179179
}
180180

181181
if getRecycleRes.Status.Code != rpc.Code_CODE_OK {
182-
HandleErrorStatus(&sublog, w, getHomeRes.Status)
182+
HandleErrorStatus(&sublog, w, getRecycleRes.Status)
183183
return
184184
}
185185

0 commit comments

Comments
 (0)