diff --git a/changelog/unreleased/fix-datagateway-patch-error-message.md b/changelog/unreleased/fix-datagateway-patch-error-message.md new file mode 100644 index 0000000000..245b1477ba --- /dev/null +++ b/changelog/unreleased/fix-datagateway-patch-error-message.md @@ -0,0 +1,6 @@ +Bugfix: Fix an oCDAV error message + +We've fixed an error message in the oCDAV service, that said "error doing GET request to data service" +even if it did a PATCH request to the data gateway. This error message is now fixed. + +https://github.com/cs3org/reva/pull/3472 diff --git a/internal/http/services/owncloud/ocdav/tus.go b/internal/http/services/owncloud/ocdav/tus.go index 9a3eb8c082..b792f034c8 100644 --- a/internal/http/services/owncloud/ocdav/tus.go +++ b/internal/http/services/owncloud/ocdav/tus.go @@ -259,7 +259,7 @@ func (s *svc) handleTusPost(ctx context.Context, w http.ResponseWriter, r *http. httpRes, err = s.client.Do(httpReq) if err != nil { - log.Error().Err(err).Msg("error doing GET request to data service") + log.Error().Err(err).Msg("error doing PATCH request to data gateway") w.WriteHeader(http.StatusInternalServerError) return }