-
Notifications
You must be signed in to change notification settings - Fork 113
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
Fix truncating existing files #4448
Fix truncating existing files #4448
Conversation
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
The TUS handler will not finish the upload for us, that's usually already done in the TUS POST request already, which we bypass by doing the InitiateFileUpload flow.
843e74d
to
717c1c6
Compare
.drone.star
Outdated
@@ -5,7 +5,7 @@ OSIXIA_OPEN_LDAP = "osixia/openldap:1.3.0" | |||
REDIS = "redis:6-alpine" | |||
OC_CI_PHP = "cs3org/behat:latest" | |||
OC_LITMUS = "owncloud/litmus:latest" | |||
OC_CS3_API_VALIDATOR = "owncloud/cs3api-validator:0.2.0" | |||
OC_CS3_API_VALIDATOR = "owncloud/cs3api-validator:latest" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't we stick to a release?
@@ -284,47 +286,6 @@ var _ = Describe("File uploads", func() { | |||
}) | |||
}) | |||
|
|||
When("the user uploads a zero byte file", func() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we add a negative test to document the clients should know they are not supposed to send a subsequent request after initiating a 0 byte file upload?
Co-authored-by: Jörn Friedrich Dreyer <[email protected]>
928fef9
to
8b626a3
Compare
8b626a3
to
51cb2d7
Compare
This PR fixes the problem where existing files kept their content when being overwritten by a 0-byte file.
Fixes owncloud/ocis#8003