Skip to content

Dont return cached date in shared cache when the file doesn't exist - #12549

Merged
MorrisJobke merged 1 commit into
masterfrom
shared-cache-non-existing
Dec 10, 2014
Merged

MorrisJobke merged 1 commit into
masterfrom
shared-cache-non-existing

Conversation

@icewind1991

Copy link
Copy Markdown
Contributor

Properly return false instead.

Fixes #12538

cc @PVince81 @DeepDiver1975

@scrutinizer-notifier

Copy link
Copy Markdown

The inspection completed: No new issues

@ghost

ghost commented Dec 2, 2014

Copy link
Copy Markdown

🚀 Test PASSed. 🚀
Refer to this link for build results (access rights to CI server needed):
https://ci.owncloud.org//job/pull-request-analyser-ng-simple/3602/
🚀 Test PASSed. 🚀

@PVince81

PVince81 commented Dec 2, 2014

Copy link
Copy Markdown
Contributor

@icewind1991 why did this happen in the first place ? What's the relationship with WebDAV MOVE while a regular Web UI MOVE worked ? Just trying to understand.

@PVince81

PVince81 commented Dec 2, 2014

Copy link
Copy Markdown
Contributor

Also, thanks for the fix! Tested, works 👍

@icewind1991

Copy link
Copy Markdown
Contributor Author

dav moved checked if the target file existsed by doing a getFileInfo (the resulting info is also reused later down the line) while web uit move uses file_exists, because the shared cache always returned data sabre thought the target file existed, tried to remove it, which failed

@PVince81

PVince81 commented Dec 2, 2014

Copy link
Copy Markdown
Contributor

I see, makes sense. Thanks.

@MorrisJobke

Copy link
Copy Markdown
Contributor

Makes sense 👍

MorrisJobke added a commit that referenced this pull request Dec 10, 2014
Dont return cached date in shared cache when the file doesn't exist
@MorrisJobke
MorrisJobke merged commit 3026cdb into master Dec 10, 2014
@MorrisJobke MorrisJobke added this to the 8.0-current milestone Dec 10, 2014
@MorrisJobke
MorrisJobke deleted the shared-cache-non-existing branch December 10, 2014 07:49
@lock lock Bot locked as resolved and limited conversation to collaborators Aug 15, 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.

[master] WebDAV MOVE from root into shared folder as non owner 403 forbidden

4 participants