Skip to content

Clean up part file only once, not twice on error - #17268

Merged
PVince81 merged 2 commits into
masterfrom
files-cleanuppartfileonlyonce
Jul 1, 2015
Merged

PVince81 merged 2 commits into
masterfrom
files-cleanuppartfileonlyonce

Conversation

@PVince81

@PVince81 PVince81 commented Jul 1, 2015

Copy link
Copy Markdown
Contributor

Follow up PR for #17189 (comment)

Please review @nickvergessen @MorrisJobke @icewind1991

@PVince81 PVince81 added this to the 8.2-next milestone Jul 1, 2015
@PVince81 PVince81 mentioned this pull request Jul 1, 2015
6 tasks done
Comment thread lib/private/connector/sabre/file.php Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

put this before the try please:
bildschirmfoto vom 2015-07-01 09 44 43

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I didn't aim high enough when shooting that line. Will do.

@PVince81
PVince81 force-pushed the files-cleanuppartfileonlyonce branch from 393b7b6 to fd4efdd Compare July 1, 2015 07:48
@PVince81

PVince81 commented Jul 1, 2015

Copy link
Copy Markdown
Contributor Author

Sleep well Jenkins... I force pushed.

@nickvergessen

Copy link
Copy Markdown
Contributor

👍 and backport 🙈

@PVince81

PVince81 commented Jul 1, 2015

Copy link
Copy Markdown
Contributor Author

@karlitschek please approve backport to stable8.1

@PVince81

PVince81 commented Jul 1, 2015

Copy link
Copy Markdown
Contributor Author

Shit, I just found another issue, I'll add this to this commit.
👎 for now

@PVince81

PVince81 commented Jul 1, 2015

Copy link
Copy Markdown
Contributor Author

if $needsPartFile is false, this code https://github.com/owncloud/core/blob/master/lib/private/connector/sabre/file.php#L149 would try and delete the original file... (can happen with s2s)

@PVince81

PVince81 commented Jul 1, 2015

Copy link
Copy Markdown
Contributor Author

We probably shouldn't have rushed #17189... 🙈

@scrutinizer-notifier

Copy link
Copy Markdown

A new inspection was created.

@PVince81

PVince81 commented Jul 1, 2015

Copy link
Copy Markdown
Contributor Author

See cf245b8

This will prevent deleting the real file if an upload failed for some reason through s2s (locking or other)

Please re-review.

@PVince81

PVince81 commented Jul 1, 2015

Copy link
Copy Markdown
Contributor Author

Jenkins PR: #17281

@PVince81

PVince81 commented Jul 1, 2015

Copy link
Copy Markdown
Contributor Author

I raised a ticket for the part file with real file mix up: #17284
It contains reproduction steps.

@karlitschek

Copy link
Copy Markdown
Contributor

👍 please backport

@nickvergessen

Copy link
Copy Markdown
Contributor

👍 confirmed it fixes #17284 now as well.
(Missing "Fix #17284" from PR description? )

@PVince81

PVince81 commented Jul 1, 2015

Copy link
Copy Markdown
Contributor Author

The PR wasn't originally intended to fix #17284, I hijacked it to make it so 😄

Thanks for testing.

@ghost

ghost commented Jul 1, 2015

Copy link
Copy Markdown

🚀 Test PASSed.🚀
chuck

PVince81 pushed a commit that referenced this pull request Jul 1, 2015
Clean up part file only once, not twice on error
@PVince81
PVince81 merged commit 709eca2 into master Jul 1, 2015
@PVince81
PVince81 deleted the files-cleanuppartfileonlyonce branch July 1, 2015 13:20
@PVince81

PVince81 commented Jul 1, 2015

Copy link
Copy Markdown
Contributor Author

Backport PR #17289

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants