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

user-based autoaccepting is off but shares are auto accepted when shared with group #34705

Closed
individual-it opened this issue Mar 7, 2019 · 5 comments · Fixed by #34850
Closed
Assignees
Labels
feature:sharing p2-high Escalation, on top of current planning, release blocker Type:Bug
Milestone

Comments

@individual-it
Copy link
Member

Steps to reproduce

  1. create user1 and put the user into group1
  2. as user1 disable "Automatically accept new incoming local user shares"
  3. share a folder with group1

Expected behaviour

user1 should not automatically receive the share

Actual behaviour

user1 received the share

Client configuration

Browser:

Operating system:

Logs

ownCloud log (data/owncloud.log)

{"reqId":"MNZ2NNCqWxgYDbg9wRaL","level":3,"time":"2019-03-07T10:52:20+00:00","remoteAddr":"127.0.0.1","user":"admin","app":"PHP","method":"GET","url":"\/owncloud-core\/ocs\/v1.php\/apps\/files_sharing\/api\/v1\/sharees?format=json&search=g1&perPage=200&itemType=folder","message":"Invalid argument supplied for foreach() at \/home\/artur\/www\/owncloud-core\/apps\/files_sharing\/lib\/SharingBlacklist.php#96"}
{"reqId":"EXA9df4mDerSVuIDeiod","level":3,"time":"2019-03-07T10:52:27+00:00","remoteAddr":"127.0.0.1","user":"admin","app":"PHP","method":"POST","url":"\/owncloud-core\/ocs\/v2.php\/apps\/files_sharing\/api\/v1\/shares?format=json","message":"Invalid argument supplied for foreach() at \/home\/artur\/www\/owncloud-core\/apps\/files_sharing\/lib\/SharingBlacklist.php#96"}
@ownclouders
Copy link
Contributor

GitMate.io thinks the contributor most likely able to help you is @ownclouders.

Possibly related issues are #6167 (Sharing with a group), #8565 (Hidden "Share with user or group …"), #19153 (User Can Accept Shares from Other Users), #4435 (Accept incoming shares), and #31613 ([stable10] Accept user share stable10).

@individual-it
Copy link
Member Author

the reverse user setting on & admin setting off does not work correctly with groups

@PVince81 PVince81 added the p2-high Escalation, on top of current planning, release blocker label Mar 7, 2019
@PVince81
Copy link
Contributor

PVince81 commented Mar 7, 2019

making that p2 as we don't want to ship a broken new feature

@PVince81 PVince81 added this to the development milestone Mar 7, 2019
@karakayasemi
Copy link
Contributor

I investigated the issue. As far as I see, there is no explicit share state definition for the per user in group shares. Somehow, we need to add state definition for the per user in the group shares to fix this issue.
I could not find a quick fix with the current architecture.

@PVince81
Copy link
Contributor

@karakayasemi there is a share state definition, we call this "sub-shares" and has the share type 2.

please chat with @sharidas who's currently rediscovering the concept

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature:sharing p2-high Escalation, on top of current planning, release blocker Type:Bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants