Skip to content

Use a tmp file for swift writes - #14424

Merged
rullzer merged 1 commit into
masterfrom
fix/13554/swift_to_tmp
Mar 6, 2019
Merged

Use a tmp file for swift writes#14424
rullzer merged 1 commit into
masterfrom
fix/13554/swift_to_tmp

Conversation

@rullzer

Copy link
Copy Markdown
Member

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
Copy Markdown
Member

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

@rullzer

Copy link
Copy Markdown
MemberAuthor

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

done. Please have another look

@MorrisJobkeMorrisJobke mentioned this pull request Mar 4, 2019
45 tasks

@MorrisJobkeMorrisJobke left a comment

Copy link
Copy Markdown
Member

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
rullzerforce-pushed the fix/13554/swift_to_tmp branch from dd568a1 to 1153123CompareMarch 4, 2019 12:12
@rullzer
rullzer merged commit 1b27e95 into masterMar 6, 2019
@rullzer
rullzer deleted the fix/13554/swift_to_tmp branch March 6, 2019 14:33
@rullzer

Copy link
Copy Markdown
MemberAuthor

/backport to stable15

@backportbot-nextcloud

Copy link
Copy Markdown

backport to stable15 in #14570

@MorrisJobkeMorrisJobke mentioned this pull request Mar 6, 2019
9 tasks
@mzamot

mzamot commented Mar 13, 2019

Copy link
Copy Markdown
Contributor

@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 freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to reviewWaiting for reviewsregression

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@rullzer@icewind1991@mzamot@MorrisJobke