Skip to content

Mark shares as dirty when changing permissions - #19511

Merged
icewind1991 merged 4 commits into
masterfrom
etag-share-permissions-update
Oct 6, 2015
Merged

icewind1991 merged 4 commits into
masterfrom
etag-share-permissions-update

Conversation

@icewind1991

Copy link
Copy Markdown
Contributor

@karlitschek

Copy link
Copy Markdown
Contributor

nice 👍

@DeepDiver1975

Copy link
Copy Markdown
Contributor

@icewind1991 milestone? labels? 👿

and there is a unit test failing - THX

@icewind1991 icewind1991 added this to the 8.2-current milestone Oct 1, 2015
@icewind1991

Copy link
Copy Markdown
Contributor Author

Unit tests pass locally...

@PVince81

PVince81 commented Oct 1, 2015

Copy link
Copy Markdown
Contributor

Cool, so looking at the code it seems it was easy than I thought.

@DeepDiver1975

Copy link
Copy Markdown
Contributor

Unit tests pass locally...

not for me against sqlite

/home/deepdiver/Development/ownCloud/master-autotest/tests/lib/mail/message.php:45

4) OCA\Files_sharing\Tests\EtagPropagation::testEtagChangeOnPermissionsChange
Failed asserting that the etag for "" of user test-share-user2 has changed
Failed asserting that '560d51b04f494' is not equal to <string:560d51b04f494>.

/home/deepdiver/Development/ownCloud/master-autotest/apps/files_sharing/tests/etagpropagation.php:137
/home/deepdiver/Development/ownCloud/master-autotest/apps/files_sharing/tests/etagpropagation.php:166
/home/deepdiver/Development/ownCloud/master-autotest/apps/files_sharing/tests/etagpropagation.php:420

@PVince81

PVince81 commented Oct 1, 2015

Copy link
Copy Markdown
Contributor

Tested manually, worked.

Local unit tests with sqlite also pass for me. Race condition ?

@rullzer

rullzer commented Oct 2, 2015

Copy link
Copy Markdown
Contributor

Also working here locally

@DeepDiver1975
DeepDiver1975 force-pushed the etag-share-permissions-update branch from dc1c23e to 79d512d Compare October 2, 2015 13:49
@PVince81

PVince81 commented Oct 5, 2015

Copy link
Copy Markdown
Contributor

@DeepDiver1975 can you try again ? Hopefully the rebase helped...

@MorrisJobke

Copy link
Copy Markdown
Contributor
OCA\Files_sharing\Tests\EtagPropagation::testEtagChangeOnPermissionsChange
Failed asserting that the etag for "" of user test-share-user2 has changed
Failed asserting that '560e8fbe92a05' is not equal to <string:560e8fbe92a05>.

/var/jenkins/workspace/core-ci-linux@3/database/oci/label/SLAVE/apps/files_sharing/tests/etagpropagation.php:137
/var/jenkins/workspace/core-ci-linux@3/database/oci/label/SLAVE/apps/files_sharing/tests/etagpropagation.php:166
/var/jenkins/workspace/core-ci-linux@3/database/oci/label/SLAVE/apps/files_sharing/tests/etagpropagation.php:420

also the php7 job fails

@MorrisJobke

Copy link
Copy Markdown
Contributor

@PVince81 It's only on OCi ;)

@DeepDiver1975
DeepDiver1975 force-pushed the etag-share-permissions-update branch from 79d512d to 41f9946 Compare October 6, 2015 09:38
@DeepDiver1975

Copy link
Copy Markdown
Contributor

This still falls apart - even if it work on other machines - it's fishy and we cannot accept this.

@icewind1991 please try to find a solution - THX

@icewind1991

Copy link
Copy Markdown
Contributor Author

Fixed the race condition

@DeepDiver1975

Copy link
Copy Markdown
Contributor

Fixed the race condition

great - THX

@DeepDiver1975

Copy link
Copy Markdown
Contributor

@PVince81 @MorrisJobke @rullzer please review and test - THX

@MorrisJobke

Copy link
Copy Markdown
Contributor

This only changes the etag of the parent if I do a PROPFIND against the parent. I think this is intended. Shouldn't there be a permission field in WebDAV? I couldn't find it. I guess I need to specify that I also want the permissions for each element.

Also nothing in the log 👍 from my side.

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.

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.

phpdoc is wrong, argument should be float, will fix

@rullzer

rullzer commented Oct 6, 2015

Copy link
Copy Markdown
Contributor

Other than my comments. Looking good and seems to work! 👍

icewind1991 added a commit that referenced this pull request Oct 6, 2015
Mark shares as dirty when changing permissions
@icewind1991
icewind1991 merged commit 59cf817 into master Oct 6, 2015
@icewind1991
icewind1991 deleted the etag-share-permissions-update branch October 6, 2015 16:09
@lock lock Bot locked as resolved and limited conversation to collaborators Aug 9, 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.

Changing share permissions should trigger an etag change

6 participants