-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
fix(S3): Only append streams if non-seekable #55654
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
Conversation
|
/backport to stable32 |
|
/backport to stable31 |
|
/backport to stable30 |
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.
It should check that the stream is seekable.
If it isn't then the retry will fail anyway so the current logic would work for that
8f43415 to
adc45bf
Compare
adc45bf to
c02e47a
Compare
Later, when we rewind the stream in `writeMultiPart` during retry, both streams were rewinded, so the resulting stream was bigger than expected. Inspired by https://github.com/aws/aws-sdk-php/blob/master/src/S3/ObjectUploader.php#L136-L146 Signed-off-by: Louis Chmn <louis@chmn.me>
c02e47a to
00ec57e
Compare
|
The backport to # Switch to the target branch and update it
git checkout stable30
git pull origin stable30
# Create the new backport branch
git checkout -b backport/55654/stable30
# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts, resolve them
git cherry-pick 00ec57ef
# Push the cherry pick commit to the remote repository and open a pull request
git push origin backport/55654/stable30Error: Failed to check for changes with origin/stable30: No changes found in backport branch Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports. |
Later, when we rewind the stream in
writeMultiPartduring retry, both streams were rewinded, so the resulting stream was bigger than expected.Inspired by https://github.com/aws/aws-sdk-php/blob/master/src/S3/ObjectUploader.php#L136-L146