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

Sharing via group does not work in all cases #11295

Closed
tps800 opened this issue Sep 25, 2014 · 5 comments
Closed

Sharing via group does not work in all cases #11295

tps800 opened this issue Sep 25, 2014 · 5 comments

Comments

@tps800
Copy link

tps800 commented Sep 25, 2014

Assume some groups with users:
Group A holds users a, b, c
Group B holds users c, d, a, z

Now one shares files
Files I, II are shared to group A
Files II, III are shared to group B
Files IV, II are shared to user b and group B

Now in theory
Users a, c can access files I, II
Users b can access files I, II, III, IV
Users a, c, d, z can access files II, III, IV

Doing the very same with ownCloud leads to
Users c can access files I, II
Users a, b can access no files
Users c, d, z can access files II, III, IV

Now my question: is there any way to printout what is shared by a specific user to which other users and which files these have access to?

I would like to tell apart if this is an "user error" or a "system error" (at the moment I am tending to a system error, since checking carefully it really looks like there is a problem having users in two different groups, sharing shared files between these groups.

Environment: Oracle Linux 6.5 (likely to be migrated to 7.x)
Server: Apache 2.2.15
Database: PostgreSQL 9.3.5
Client: ownCloud-Client 1.6.3
OC-Version: ownCloud 7.0.2 (nightly builds)
PHP-Version: PHP 5.5.16

@PVince81
Copy link
Contributor

Hmm, this is likely to be a bug with grouping shares.
Also, note that in some cases the target file might appear twice, the second one having a "(2)" in its name.

There's work in progress to make this work properly: #10107

You can have a look at the oc_share table if you like, but it will not always tell exactly what user has access where.

@schiesbn

@tps800
Copy link
Author

tps800 commented Sep 26, 2014

Would be nice to have a view showing what users did in some sort of a tree: what is shared and with whom. Could be a big enhancement for debugging user or system problems ...!

@schiessle
Copy link
Contributor

Now in theory
Users a, c can access files I, II
Users b can access files I, II, III, IV
Users a, c, d, z can access files II, III, IV

If I look at your group/user setup and the way the files are shared I come to following theory:

User 'a', 'c' can access file I, II, III, VI
User 'b' can access file I, II, VI
User 'd', 'z' can access file II, III, VI

That's also the result I get with OC7.0.2. Some files are shown twice, e.g. as "file 1.txt" and "file 1 (2).txt" because we don't group shares in OC7.0.2. But all users have access to the correct files.

With OC7.0.3 you will see every file only once, because we group multiple shares of the same file.

@tps800
Copy link
Author

tps800 commented Dec 9, 2014

At least with OC7.0.3 sharing works, as far as I could test now. All users can see all files thought for them, regardless how often they are in groups files shared with -- and files do not show up twice or more often any more (quite good, since we're using the client and ownCloud to share ~60 GiByte. With files doubled this where more than 80 GiByte and up to 240 GiByte for some users!).

@PVince81
Copy link
Contributor

@tps800 does it mean that the issue is fixed now for you in 7.0.3 ? If not you could try 7.0.5 too.

If it still happens, please let us know how it behaves now.

Closing it now, please reopen if still having issues. Thanks.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants