-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Group sharing permissions of subfolders are not cumulative #18984
Comments
@schiesbn |
@schiesbn Ping |
Alright, I finally had some time for a git bisect session, which shows 332ea77 / PR #13920 as the problem. However, since the issue is in the put function (ie. where it gets sent to the db I guess), just fixing it wouldn't fix already existing (malformed) shares. I can confirm this by having compared shares created before 332ea77 (which still works afterwards) to shares created at/after 332ea77 , so I'm really not familiar enough with your code to propose a fix.. @schiesbn any ideas? |
A quick look at my db shows that everything seems to be there with the proper permissions, so 332ea77 seems to have uncovered a bug in the way reshare permissions are read more then anything. Indeed, I can now update update the issue with the following steps instead: Steps to reproduce
Expected behaviouru1 can reshare (by link or with someone) the folder test Actual behaviouru1 can't reshare (by link or with someone) the folder test. Hackingly fixChanging g1's oc_share.id so that it is > g2's oc_share.id gives user u1 reshare permission. Note that all of this only affects reshares, and not read/write permissions. |
we should fix this when we move over the sharing internals (better grouping of shares)... assinging to myself so I don't forget. |
PR here #25113 |
PR here that might address this #25113 |
I retested this in OC 9.0.7 with the provided steps and I couldn't reproduce the issue. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Steps to reproduce
Expected behaviour
u2 can reshare (by link or with someone) test1, test2, as well as test1/subtest1 and test2/subtest2
Actual behaviour
u2 can reshare test1, test2, test1/subtest1 but not test2/subtest2
Server configuration
Database:
MySQL/SQLite
PHP version:
5.4
ownCloud version: (see ownCloud admin page)
8.1.1/master
Updated from an older ownCloud or fresh install:
8.1.0->8.1.1/fresh
List of activated apps:
Enabled:
Disabled:
(basically the default clean master one, a bit different on my production version)
Are you using external storage, if yes which one: local/smb/sftp/...
No
Are you using encryption: yes/no
No
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
Yes(LDAP)/No
Note 1: While u2 can't share test2/subtest2, he can click on the sharing icon and has a "Shared with you and the group g2 by u1 - Resharing is not allowed" while doing another share from u1 (say for folder test3) without any sharing permissions at all makes the shared button greyed-out and not clickable.
Note 2:This behavior was also observed back in 8.1.0, I just didn't have the time to investigate/report it before.
Note 3: This only affects sharing, write permission are fine (ie. if at least one of g1, g2 has write permissions, u2 will have them too).
The text was updated successfully, but these errors were encountered: