Repository navigation
Do not retrieve shares through group if user has no group - #13463
Conversation
|
I bascially just added an if and unit tests, see white-space less diff: https://github.com/owncloud/core/pull/13463/files?w=1 |
There was a problem hiding this comment.
if (!empty($groups)) { instead?
There was a problem hiding this comment.
I always forget that PHP has that... In JS I'd have written if (!groups)
|
Patch idea seems reasonable. |
f31e68e to
2838fb6
Compare
|
Refer to this link for build results (access rights to CI server needed): |
|
Yes it is! Or were you referring to Jenkins passing even after a force push ? |
|
👍 |
|
Rebase required |
There was a problem hiding this comment.
What happens if a user is more in than 1000 groups on SQLite? – The in statement should explode on SQLite.
2838fb6 to
8fa3e7a
Compare
|
rebased |
|
Refer to this link for build results (access rights to CI server needed): |
|
👍 |
…mptygroup Do not retrieve shares through group if user has no group
|
The inspection completed: 16 new issues, 4 updated code elements |
Follow up for #13423
On master, this saves on query.
It seems that the query just becomes
shared_with in (NULL)when the user has no groups assigned.On stable7 however it fails with an exception and breaks.
So this fix here will be required for the backport of #13423 (discovered during backport)
Please review @schiesbn @MorrisJobke @LukasReschke @DeepDiver1975