-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conflict / overwrite issues with TUS #1294
Comments
|
It looks like this is due to not correctly handling errors during TUS upload. So far the TUS client is retrying the upload several times, despite the 409 status code. We should make it fail directly in case of 409 or 403. Also, potential issue: if we are parsing the error message from the XML it won't work as OCIS doesn't contain an error body yet: https://github.com/owncloud/ocis-reva/issues/199 |
It seems the library is retrying on 409 error codes, so our test will timeout before we reach the end result. There is currently no wait to make the TUS client abort directly: tus/tus-js-client#196 A possible workaround would be to make the retry delays configurable and have those specific tests set them to shorter values. Or increase the timeout for which we wait for errors... |
I've sent an upstream PR to provide a callback: tus/tus-js-client#197 |
PR here: owncloud/web#3472 but requires a decision on how to return error bodies in OCIS |
still waiting for upstream PR to be merged |
now waiting for upstream to make a release if this becomes urgent we could use the matching commit instead |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 10 days if no further activity occurs. Thank you for your contributions. |
fixed by #2280 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 10 days if no further activity occurs. Thank you for your contributions. |
https://drone.owncloud.com/owncloud/ocis/9644/50/9
Maybe this fail is related? |
File overwrite works and covered in webUI scenario: https://github.com/owncloud/web/blob/752ab3a836d4c44edefa925981aa759bcd11da38/tests/e2e/cucumber/features/smoke/upload.feature#L20-L22 And Scenario: conflict with a big file (when chunking is implemented this upload should be chunked) So, closing this |
Run the following acceptance tests with Phoenix:
tests/acceptance/features/webUIUpload/upload.feature:84The failure seems to be related to how the new TUS based implementation handles conflicts or overwrites.
The text was updated successfully, but these errors were encountered: