Skip to content

Fix getItemSharedWithUser for groups - #13423

Merged
DeepDiver1975 merged 1 commit into
masterfrom
share-fixfindshareforuserwithmultiplegroups
Jan 19, 2015
Merged

DeepDiver1975 merged 1 commit into
masterfrom
share-fixfindshareforuserwithmultiplegroups

Conversation

@PVince81

Copy link
Copy Markdown
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.

Fixes #12475

Please review @icewind1991 @schiesbn @LukasReschke @MorrisJobke @DeepDiver1975

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.
@PVince81

Copy link
Copy Markdown
Contributor Author

To test, use these steps: #13361 (comment)

Also fixes #13361

@PVince81 PVince81 added this to the 8.0-current milestone Jan 16, 2015
@PVince81

Copy link
Copy Markdown
Contributor Author

@karlitschek backport to stable7 would be good, at least 4 cases were observed there here: #12475

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.

Nice :) Didn't know of that one. You can pass in an array and it will resolve one ?with all group elements? 🚀 science ;)

@karlitschek

Copy link
Copy Markdown
Contributor

@PVince81 agreed. Please backport :-)

@scrutinizer-notifier

Copy link
Copy Markdown

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

@ghost

ghost commented Jan 16, 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/7121/
👍 Test PASSed. 👍

@LukasReschke

Copy link
Copy Markdown
Contributor

Confirmed to work by @GreenArchon in #12475 (comment)

@LukasReschke

Copy link
Copy Markdown
Contributor

👍 – would love getting some feedback from others more familiar with the sharing code before merging though.

@MorrisJobke

Copy link
Copy Markdown
Contributor

I followed the steps but updated from 7.0.2 to this branch. I got following:
reshare

Is this intended?

@PVince81

Copy link
Copy Markdown
Contributor Author

Yes. In the absence of child entry it will set the "parent" field to the group share instead.
For now this is intended. We can look into making it auto-create the child entry later (but I'll need help from @schiesbn for that).

@PVince81

Copy link
Copy Markdown
Contributor Author

@schiesbn can you review this ?

@MorrisJobke

Copy link
Copy Markdown
Contributor

@PVince81 Then you get the 👍 from me. Because everything else works. u3 has the share and can work with it.

DeepDiver1975 added a commit that referenced this pull request Jan 19, 2015
…multiplegroups

Fix getItemSharedWithUser for groups
@DeepDiver1975
DeepDiver1975 merged commit d2d6472 into master Jan 19, 2015
@DeepDiver1975
DeepDiver1975 deleted the share-fixfindshareforuserwithmultiplegroups branch January 19, 2015 11:34
@MorrisJobke

Copy link
Copy Markdown
Contributor

@PVince81 Please backport ;)

@PVince81

Copy link
Copy Markdown
Contributor Author

I'm on it. There are conflicts, so I'll submit a PR for the backport.

@PVince81

Copy link
Copy Markdown
Contributor Author

There are complications during the backport, needs an additional fix: #13463

@PVince81

Copy link
Copy Markdown
Contributor Author

Backport to stable7 is in this PR: #13470
It also includes the fix from #13463

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

Resharing via Link appears to be broken after Update to 7.0.3

6 participants