Skip to content

A folder shared with two groups appears twice for an user in these two groups. #9724

Closed

Description

@phlb

Hello,

When I try to share a folder with two groups, if a user is in these two groups, the user show the folder twice.

Steps to reproduce

  • create user 'test1'
  • create user 'test2'
  • create user 'test3'
  • create a group 'group1' with the user test1 test2 test3
  • create a group 'group2' with the user test1 test2
  • with the user test1, create a folder "myfolder"
  • with the user test1 share the folder "myfolder" with the group group1 without resharing neither modification allowed
  • with the user test1 share the folder "myfolder" with the group group2 without resharing and with modification allowed
  • login with the user test2

Expected behavior

With the user test2, the folder "myfolder" should appear only once and modification should be allowed.

Actual behaviour

With the user test2, the folder "myfolder" appears twice.

Server configuration

Operating system : Debian Wheezy

Database : postgresql 9.1.13-0wheezy1

php : 5.4.4-14+deb7u9

owncloud : owncloud 7 RC3 / owncloud 6.0.3

Updated from an older ownCloud or fresh install :
Fresh install

List of activated apps :
Default installation

Activity

  1. changed the title [-]Sharing with multiple groups create mutliple entry for a specific user[/-] [+]Sharing through multiple groups create mutliple entry for a specific user[/+] on Jul 18, 2014
  2. changed the title [-]Sharing through multiple groups create mutliple entry for a specific user[/-] [+]A folder shared with two groups appears twice for an user in these two groups.[/+] on Jul 18, 2014
  3. karlitschek commented on Jul 18, 2014

    @karlitschek
    Contributor

    @schiesbn Can you have a look please?

  4. foobarth commented on Aug 22, 2014

    @foobarth

    This gets even worse if you're using the desktop client (at least on Mac, i can confirm). When you're uploading some files to the share which has modifications enabled, the client instantly downloads everything again into the other share. So all files exist twice in these two folders. It seems OC does not recognize the physical folders as one but sees them as seperate ones.

  5. schiessle commented on Aug 22, 2014

    @schiessle
    Contributor

    That's how the ownCloud sharing works since the beginning. So I wouldn't call it a bug. But I agree that we should change the behaviour and group the shares. I'm already working on it: #10107

    This includes some larger changes. Not sure if we want to change it for OC7 also because it is not really a bug, but it will definitely be ready for OC8.

  6. self-assigned this
    on Aug 22, 2014
  7. PVince81 commented on Sep 4, 2014

    @PVince81
    Contributor

    Strange, I tried these steps in OC 6.0.5 but the target user only gets a single entry.
    So I suppose this is OC 7 specific ? (the report mentionned OC 6.0.3)

  8. phlb commented on Sep 4, 2014

    @phlb
    ContributorAuthor

    Hi,

    During my test in oc 6.0.3 sometimes the bug appears when I try to share
    a second folder through 2 groups. Sometimes the bug appears for the
    first folder.

  9. PVince81 commented on Sep 4, 2014

    @PVince81
    Contributor

    Yeah, from what we saw in the code the logic isn't very clear/clean. There might be combinations of share that might work, others that don't.

  10. 21 remaining items

  11. jammon88 commented on Jul 5, 2016

    @jammon88

    Hi there

    Same issue with OC 9.0.3. In OC 8 we haven't that problem. Thanks for your check and fix.

  12. PVince81 commented on Jul 5, 2016

    @PVince81
    Contributor

    @jammon88 mind giving more details about your config and the way the shares are set up to confirm that it's the same issue ?

  13. jammon88 commented on Jul 5, 2016

    @jammon88

    Of course:

    Server: Ubuntu 14.04.04
    Database: mysql Ver 14.14 Distrib 5.5.49
    Webserver: Apache/2.4.7
    Owncloud: 9.0.3

    Share from a syncuser for LDAP synced groups. (two Groups)

    Problem since update from OC 8.1.? to OC 9.0.3 with apt-get upgrade.

    Config:

    'mysql', 'version' => '9.0.3.2', 'dbname' => 'owncloud', 'dbhost' => 'localhost', 'dbtableprefix' => 'oc_', 'installed' => true, 'loglevel' => '2', 'forcessl' => true, 'ldapIgnoreNamingRules' => false, 'theme' => '', 'maintenance' => false, 'share_folder' => '/Shared', 'overwrite.cli.url' => '/owncloud', 'trashbin_retention_obligation' => 'auto', 'updatechecker' => false, 'memcache.local' => '\OC\Memcache\APCu', 'logtimezone' => 'Europe/Zurich', 'log_type' => 'owncloud', 'log_rotate_size' => 1048576, ); (rows with usernames, passwords, ids etc. I've deleted ;)) Do you need more infos? When yes, what?
  14. PVince81 commented on Jul 5, 2016

    @PVince81
    Contributor

    @jammon88 thanks, can you check the steps from #9724 (comment) whether it matches your sharing setup.

    Or provide steps how to recreate the sharing situation you have on your server.
    There are different versions of this issue (some involving different permissions), I just wanted to make sure which one it is. Thanks.

  15. jammon88 commented on Jul 5, 2016

    @jammon88

    We have different permissions, like in the post above. Group 1 has all right, Group 2 only read right. In the sharing folder named "shared" from the syncuser I've all right, in the sharing named "shared (1)" (looks like a linked folder) I've only read right with my personal user.

  16. PVince81 commented on Jul 5, 2016

    @PVince81
    Contributor

    Okay, thanks for the info.

  17. neoone256 commented on Jul 11, 2016

    @neoone256

    Hello, is it there any solution for this yet? I am having this problem on version 9.0.3

  18. norganna commented on Jul 12, 2016

    @norganna

    Confirmed again, would seem to have regressed in 9.0.3.

    If I am in 2 groups to which a folder is shared, the folder appears twice.

    In my case both groups have the same permission.

    • User A creates folder Public.
    • User B is a member of Group X and Group Y.
    • User A shares folder to Group X and Group Y with same permissions (full access).
    • User B sees 2 folders, Public and Public (2).

    Not sure if it's relevant, but in my case, Group X is an LDAP group and Group Y is an internal group with LDAP users in it.

  19. PVince81 commented on Jul 12, 2016

    @PVince81
    Contributor

    Yes, indeed. Closing as duplicate of #24575

  20. tavinus commented on Nov 29, 2016

    @tavinus

    Had 9.x.x? forgot (sry) and this was annoying me. Just to let people know that 9.1.2(stable) fixes this. I had to manually upgrade on 2 boxes though. Updater said it was up to date.

    The duplicated folders were removed from all accounts after the update.

    Side note: Manually upgrading is actualy easier and faster. I think I will always go this route from now on. So, don`t be scared if you need to manually upgrade as well. Just make sure you are not jumping too many versions.

  21. N0rimaki commented on Apr 16, 2017

    @N0rimaki

    Are you People sure this behaviour is fixed? 9.1.4(stable) VM Image
    I have still this Issue.
    -main
    ....-sub1
    ....-sub2

    2 Groups
    group1
    group2

    -main (group1, group 2 all rights)
    ....-sub1 (grou1 only read rights, with sharing in folder again)
    ....-sub2

    Download on Windows

    -main
    ....-sub1 (group1 all rights)
    ....-sub2
    -sub1 (group1 only read rights)

  22. lock commented on Aug 2, 2019

    @lock

    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.

  23. locked as resolved and limited conversation to collaborators on Aug 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions