Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable7] Fix getItemSharedWithUser for groups #13470

Merged

Conversation

PVince81
Copy link
Contributor

Fixed SQL query for whenever a user has more than one group.
Added missing $owner where clause for group lookup.
Added unit tests for the group cases.

Backport of #13423 to stable7

Please review and test @schiesbn @MorrisJobke @LukasReschke @DeepDiver1975

@PVince81 PVince81 changed the title Fix getItemSharedWithUser for groups [stable7] Fix getItemSharedWithUser for groups Jan 19, 2015
@karlitschek
Copy link
Contributor

Great 👍

@PVince81
Copy link
Contributor Author

I have retested with the steps from #13361 (comment)
And also tested with users that have no group (u1 shares with u2, then u2 shares the subfolder with u3) works as well.

@PVince81 PVince81 added this to the 8.0-current milestone Jan 19, 2015
@MorrisJobke MorrisJobke removed this from the 8.0-current milestone Jan 19, 2015
@PVince81
Copy link
Contributor Author

Strange, tests passed for me locally

Fixed SQL query for whenever a user has more than one group.
Added missing $owner where clause for group lookup.
Added unit tests for the group cases.

Backport of 40931a8 from master
@PVince81 PVince81 force-pushed the stable7-share-fixfindshareforuserwithmultiplegroups branch from ed6da64 to 18d46df Compare January 20, 2015 21:07
@ghost
Copy link

ghost commented Jan 20, 2015

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

@scrutinizer-notifier
Copy link

The inspection completed: 3 new issues, 5 updated code elements

@PVince81
Copy link
Contributor Author

Can we get this important fix merged ? Thanks

@schiesbn @MorrisJobke @LukasReschke @DeepDiver1975

@MorrisJobke
Copy link
Contributor

Let me test that.

@MorrisJobke
Copy link
Contributor

Works 👍

MorrisJobke added a commit that referenced this pull request Jan 23, 2015
…userwithmultiplegroups

[stable7] Fix getItemSharedWithUser for groups
@MorrisJobke MorrisJobke merged commit 80560e7 into stable7 Jan 23, 2015
@MorrisJobke MorrisJobke deleted the stable7-share-fixfindshareforuserwithmultiplegroups branch January 23, 2015 11:59
@PVince81 PVince81 mentioned this pull request Jan 27, 2015
@MorrisJobke MorrisJobke added this to the 7.0.5-next-maintenance milestone Feb 3, 2015
@lock lock bot locked as resolved and limited conversation to collaborators Aug 14, 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.

4 participants