You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When starting a TUS upload via Web, the first fired request is a HEAD. This request holds no body nor Content-Size header. In the REVA datagateway, it produces however an error log due to a mismatch between Content-Size header and the size of body of request: ERR content length vs transferred bytes mismatch content-length=52428800000 line=/Users/lukashirt/work/ownCloud/ocis/vendor/github.com/owncloud/reva/v2/internal/http/services/datagateway/datagateway.go:226 pkg=rhttp request-id=e9850097-c8c8-4d07-8078-655bed537acf service=frontend traceid=84dc96563b75bab09e2aab4b4d7847b4 transferred-bytes=0
Describe the bug
When starting a TUS upload via Web, the first fired request is a HEAD. This request holds no body nor
Content-Size
header. In the REVA datagateway, it produces however an error log due to a mismatch betweenContent-Size
header and the size of body of request:ERR content length vs transferred bytes mismatch content-length=52428800000 line=/Users/lukashirt/work/ownCloud/ocis/vendor/github.com/owncloud/reva/v2/internal/http/services/datagateway/datagateway.go:226 pkg=rhttp request-id=e9850097-c8c8-4d07-8078-655bed537acf service=frontend traceid=84dc96563b75bab09e2aab4b4d7847b4 transferred-bytes=0
This is the line that logs it: https://github.com/owncloud/reva/blob/be486343903bbc2acf167a8e8d51e161f921ef7f/internal/http/services/datagateway/datagateway.go#L226
Steps to reproduce
Expected behavior
No error log for the HEAD request.
Actual behavior
Error log is printed.
Setup
Please describe how you started the server and provide a list of relevant environment variables or configuration files.
Additional context
Tested with latest commit on master (20f32d4). I wanted to create this issue in https://github.com/owncloud/reva but since the Issues tab is hidden, I assume they are disabled. Even though visiting https://github.com/owncloud/reva/issues/new displays the form 😅
The text was updated successfully, but these errors were encountered: