Skip to content

Update etag of direct parent on unshare - #15815

Merged
MorrisJobke merged 1 commit into
masterfrom
unshare-etag-propagate
May 11, 2015
Merged

MorrisJobke merged 1 commit into
masterfrom
unshare-etag-propagate

Conversation

@PVince81

Copy link
Copy Markdown
Contributor

Only call dirname() once instead of twice when propagating etags to the
recipient's parent folders.

Fixes #15813

@icewind1991 @schiesbn

@karlitschek

Copy link
Copy Markdown
Contributor

good catch!

@karlitschek

Copy link
Copy Markdown
Contributor

👍

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.

Filesystem::normalizePath ?

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.

normalizePath is slower (does unicode stuff too). Here I just wanted to make sure that we have the leading slash because some callers might miss it.

@icewind1991

Copy link
Copy Markdown
Contributor

👍 otherwise

@PVince81

Copy link
Copy Markdown
Contributor Author

@icewind1991 thanks for the review. I intend to add my unit test to your fantastic etagpropagation tests from the etag propagation PR (as soon as you have added sub1/sub2)

@PVince81

Copy link
Copy Markdown
Contributor Author

Rebasing this so I can add the missing unit test.

Only call dirname() once instead of twice when propagating etags to the
recipient's parent folders.
@PVince81
PVince81 force-pushed the unshare-etag-propagate branch from 3b7759d to 65fbb5e Compare April 28, 2015 11:11
@scrutinizer-notifier

Copy link
Copy Markdown

A new inspection was created.

@PVince81

Copy link
Copy Markdown
Contributor Author

@PVince81 PVince81 added this to the 8.1-current milestone Apr 28, 2015
@ghost

ghost commented Apr 28, 2015

Copy link
Copy Markdown

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

@icewind1991

Copy link
Copy Markdown
Contributor

👍 looks good

@karlitschek

Copy link
Copy Markdown
Contributor

Can we get this merged?

@PVince81

Copy link
Copy Markdown
Contributor Author

Second reviewer needed @schiesbn @DeepDiver1975 @rullzer @MorrisJobke

@schiessle

Copy link
Copy Markdown
Contributor

👍 looks good

MorrisJobke added a commit that referenced this pull request May 11, 2015
Update etag of direct parent on unshare
@MorrisJobke
MorrisJobke merged commit 90d8e4b into master May 11, 2015
@MorrisJobke
MorrisJobke deleted the unshare-etag-propagate branch May 11, 2015 11:42
mmattel pushed a commit to mmattel/core that referenced this pull request May 22, 2015
@lock lock Bot locked as resolved and limited conversation to collaborators Aug 12, 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.

Etag change on unshare misses the first parent folder etag

6 participants