Skip to content
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

Use a tmp file for swift writes #14424

Merged
merged 1 commit into from
Mar 6, 2019
Merged

Use a tmp file for swift writes #14424

merged 1 commit into from
Mar 6, 2019

Conversation

rullzer
Copy link
Member

@rullzer rullzer commented Feb 27, 2019

Fixes #13554
Else this leads to a seekable stream error with chunked uploads

@icewind1991 I know this is not the ideal solution. but this is at least trivial to backport to 15.

@icewind1991
Copy link
Member

can you add a check to see if the source stream is already seekable

@rullzer
Copy link
Member Author

rullzer commented Mar 4, 2019

can you add a check to see if the source stream is already seekable

done. Please have another look

@MorrisJobke MorrisJobke mentioned this pull request Mar 4, 2019
45 tasks
Copy link
Member

@MorrisJobke MorrisJobke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good 👍

Else this leads to a seekable stream error with chunked uploads

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
@rullzer rullzer force-pushed the fix/13554/swift_to_tmp branch from dd568a1 to 1153123 Compare March 4, 2019 12:12
@rullzer rullzer merged commit 1b27e95 into master Mar 6, 2019
@rullzer rullzer deleted the fix/13554/swift_to_tmp branch March 6, 2019 14:33
@rullzer
Copy link
Member Author

rullzer commented Mar 6, 2019

/backport to stable15

@backportbot-nextcloud
Copy link

backport to stable15 in #14570

@MorrisJobke MorrisJobke mentioned this pull request Mar 6, 2019
9 tasks
@mzamot
Copy link
Contributor

mzamot commented Mar 13, 2019

@rullzer With the latest commit in stable15 I still get a similar error: "Unable to seek to stream position 0 with whence 0" in files bigger than 10mb. Removing the negation in isset fixed it for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews regression
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants