Skip to content

Throw lock exceptions if remote share returned 423 status code - #17282

Merged
MorrisJobke merged 1 commit into
masterfrom
s2s-catchremotelockexceptions
Jul 17, 2015
Merged

MorrisJobke merged 1 commit into
masterfrom
s2s-catchremotelockexceptions

Conversation

@PVince81

@PVince81 PVince81 commented Jul 1, 2015

Copy link
Copy Markdown
Contributor

Fixes #17275

Requires #17268 to be merged first to make this testable.

@PVince81 PVince81 added this to the 8.2-next milestone Jul 1, 2015
@PVince81

PVince81 commented Jul 1, 2015

Copy link
Copy Markdown
Contributor Author

423 error is converted on upload, download and any other operations like rename on the remotely locked file.

Comment thread lib/private/files/storage/dav.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.

Inject the path? (at least optional?)

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.

Yeah, I was just too lazy...

@PVince81

PVince81 commented Jul 1, 2015

Copy link
Copy Markdown
Contributor Author

@PVince81
PVince81 force-pushed the s2s-catchremotelockexceptions branch from 89d6979 to db490df Compare July 1, 2015 13:36
@PVince81

PVince81 commented Jul 1, 2015

Copy link
Copy Markdown
Contributor Author

I rebased and injected the path, except for rename/copy where we don't know which one might have caused the lock issue.

@nickvergessen

Copy link
Copy Markdown
Contributor

Thanks 👍

@PVince81

PVince81 commented Jul 1, 2015

Copy link
Copy Markdown
Contributor Author

Jenkins PR here: #17296

@schiesbn @icewind1991 second review ?

@PVince81
PVince81 force-pushed the s2s-catchremotelockexceptions branch from db490df to 34043d4 Compare July 3, 2015 05:51
@scrutinizer-notifier

Copy link
Copy Markdown

A new inspection was created.

@PVince81

PVince81 commented Jul 3, 2015

Copy link
Copy Markdown
Contributor Author

Rebased onto master to include the dependent fix and make it easier to review.

Please review @schiesbn @icewind1991 @MorrisJobke

@PVince81

PVince81 commented Jul 3, 2015

Copy link
Copy Markdown
Contributor Author

@owncloud-bot I hate you

Here, have a treat #17363

@nickvergessen

Copy link
Copy Markdown
Contributor

Jenkins passed: #17363 (comment)

@PVince81

PVince81 commented Jul 6, 2015

Copy link
Copy Markdown
Contributor Author

needs a second reviewer @schiesbn @icewind1991 @MorrisJobke

@MorrisJobke

Copy link
Copy Markdown
Contributor

@PVince81 I simply can't reproduce the original issue :(

@PVince81

PVince81 commented Jul 6, 2015

Copy link
Copy Markdown
Contributor Author

@MorrisJobke maybe you didn't enable locking properly ? Double check your server A (from the steps of #17275). Try uploading a file directly to A with cadaver while the file is locked. If you get 423, then try the same from server B.

Before this PR server B would tell you upload succeeded even though it didn't. After this PR server B should properly notice the locked error and forward it.

@PVince81

Copy link
Copy Markdown
Contributor Author

@MorrisJobke can you retest ? Make sure to have master merged into this branch when you do.

@MorrisJobke

Copy link
Copy Markdown
Contributor

Tested and works as expected 👍

MorrisJobke added a commit that referenced this pull request Jul 17, 2015
Throw lock exceptions if remote share returned 423 status code
@MorrisJobke
MorrisJobke merged commit 3fae984 into master Jul 17, 2015
@MorrisJobke
MorrisJobke deleted the s2s-catchremotelockexceptions branch July 17, 2015 09:34
@MorrisJobke

Copy link
Copy Markdown
Contributor

@PVince81 #17275 is targeted for 8.1.1 ... backport?

@PVince81

Copy link
Copy Markdown
Contributor Author

Yes, it fits with locking.

@karlitschek see question above.

@karlitschek

Copy link
Copy Markdown
Contributor

Yes. Backport. Thanks a lot 👍

@MorrisJobke

Copy link
Copy Markdown
Contributor

@PVince81 Can you open the backport? Thanks :)

@PVince81

Copy link
Copy Markdown
Contributor Author

Backport PR here #17710

@lock lock Bot locked as resolved and limited conversation to collaborators Aug 11, 2019
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.

Put file on remote share seems to bypass lock

5 participants