{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/15004","labels_url":"https://api.github.com/repos/owncloud/core/issues/15004/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/15004/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/15004/events","html_url":"https://github.com/owncloud/core/issues/15004","id":62720168,"number":15004,"title":"share folder with groups doesnt work","user":{"login":"caineone","id":11340988,"avatar_url":"https://avatars.githubusercontent.com/u/11340988?v=3","gravatar_id":"","url":"https://api.github.com/users/caineone","html_url":"https://github.com/caineone","followers_url":"https://api.github.com/users/caineone/followers","following_url":"https://api.github.com/users/caineone/following{/other_user}","gists_url":"https://api.github.com/users/caineone/gists{/gist_id}","starred_url":"https://api.github.com/users/caineone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caineone/subscriptions","organizations_url":"https://api.github.com/users/caineone/orgs","repos_url":"https://api.github.com/users/caineone/repos","events_url":"https://api.github.com/users/caineone/events{/privacy}","received_events_url":"https://api.github.com/users/caineone/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/owncloud/core/labels/app:user_ldap","name":"app:user_ldap","color":"02d7e1"},{"url":"https://api.github.com/repos/owncloud/core/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/owncloud/core/labels/needs%20info","name":"needs info","color":"0b02e1"},{"url":"https://api.github.com/repos/owncloud/core/labels/sharing","name":"sharing","color":"e102d8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-18T15:21:24Z","updated_at":"2015-03-19T13:53:09Z","closed_at":null,"body":"### Steps to reproduce\r\n1. User and group Management via OpenLDAP, LDAP integration is working silent\r\n1. There are \"User1\" and \"User2\" which are members of \"Group A\" and \"User3\"\r\n2. \"User1\" is sharing a folder \"Folder Z\" with \"Group A\"\r\n3. Later \"User3\" will be added to group \"Group A\"\r\n\r\n### Expected behaviour\r\n\"User2\" should have access to \"Folder Z\" via group access rights \r\nSame for later for added \"User3\"\r\n\r\n### Actual behaviour\r\nAt first time \"User2\" has access. But the access rights bounces between have access and dont see the shared folder.\r\n\"User3\" also didnt see the shared folder all the time. \r\n\r\n### Additional experiences and verified behavior\r\n\r\nIf I add a Group to a share, there will be created a line in the \"oc_share\" table for the group with permission and all the needed attributes. And additionally there will be created a line for every user of the group with parent_id = ID of the group share.\r\nAfter some time the lines for some users got lost. For example all seperate share entries for \"User1\" got lost, but \"User1\" can still see about 1/3 to 1/2 of all the shared folders. Sometimes all shares are visible on the web-front-end and the local client and then after 1 hour half of the shares got lost again.\r\nIn between the table \"oc_ldap_group_members\" is complete and the group still contains the correct users. \r\nSo the only thing, that changes over time and maybe is the cause of the bouncing access rights is the cron.php which will be executed every 15 minutes and (I think) update the user and group info from LDAP.\r\n\r\n\r\n### Server configuration\r\n**Operating system**: Ubuntu 14.04\r\n\r\n**Web server:** APACHE 2.4.7\r\n\r\n**Database:** MYSQL 5.5.41\r\n\r\n**PHP version:** PHP 5.5.9\r\n\r\n**ownCloud version:** 7.0.4\r\n\r\n**Updated from an older ownCloud or fresh install:** Updated from older versions\r\n\r\n**List of activated apps:**\r\nDeleted Files\r\nFull Text Search\r\nLDAP USer and group backend\r\nMail Template Editor\r\nPDF Viewer\r\nPictures\r\nShare Files\r\nText Editor\r\nUpdater\r\nVersions\r\n\r\n\r\n**The content of config/config.php:**\r\n<?php\r\n$CONFIG = array (\r\n  'passwordsalt' => '<removed_for_privacy_reason>',\r\n  'datadirectory' => '/mnt/owndata',\r\n  'overwritewebroot' => '/owncloud',\r\n  'dbtype' => 'mysql',\r\n  'version' => '7.0.4.2',\r\n  'dbname' => 'owncloud',\r\n  'dbhost' => 'localhost',\r\n  'dbtableprefix' => 'oc_',\r\n  'dbuser' => 'owncloud',\r\n  'dbpassword' => '<removed_for_privacy_reason>',\r\n  'installed' => true,\r\n  'ldapIgnoreNamingRules' => false,\r\n  'forcessl' => true,\r\n  'instanceid' => '5049b5a316752',\r\n  'maintenance' => false,\r\n  'singleuser' => false,\r\n  'theme' => '',\r\n  'trusted_domains' => \r\n  array (\r\n    0 => '<removed_for_privacy_reason>',\r\n  ),\r\n  'mail_smtpmode' => 'php',\r\n  'mail_from_address' => 'administration',\r\n  'mail_domain' => '<removed_for_privacy_reason>',\r\n  'mail_smtphost' => 'localhost',\r\n  'mail_smtpport' => '25',\r\n  'secret' => '<removed_for_privacy_reason>',\r\n  'loglevel' => '3',\r\n);\r\n\r\n**Are you using external storage, if yes which one:** local/smb/sftp/...\r\n\r\nno\r\n\r\n**Are you using encryption:** yes/no\r\n\r\nno\r\n\r\n**Are you using an external user-backend, if yes which one:** LDAP/ActiveDirectory/Webdav/...\r\n\r\n#### LDAP configuration (delete this part if not used)\r\nuser_ldap,\"bgjUpdateGroupsLastRun\",\"1397208478\"\r\nuser_ldap,\"enabled\",\"yes\"\r\nuser_ldap,\"has_memberof_filter_support\",\"1\"\r\nuser_ldap,\"home_folder_naming_rule\",\r\nuser_ldap,\"installed_version\",\"0.4.4\"\r\nuser_ldap,\"last_jpegPhoto_lookup\",\"0\"\r\nuser_ldap,\"ldap_agent_password\",\"\"\r\nuser_ldap,\"ldap_attributes_for_group_search\",\r\nuser_ldap,\"ldap_attributes_for_user_search\",\r\nuser_ldap,\"ldap_backup_host\",\r\nuser_ldap,\"ldap_backup_port\",\"389\"\r\nuser_ldap,\"ldap_base\",\"dc=xxx,dc=com\"\r\nuser_ldap,\"ldap_base_groups\",\"cn=owncloud,ou=groups,dc=xxx,dc=com\"\r\nuser_ldap,\"ldap_base_users\",\"ou=users,dc=xxx,dc=com\"\r\nuser_ldap,\"ldap_cache_ttl\",\"600\"\r\nuser_ldap,\"ldap_configuration_active\",\"1\"\r\nuser_ldap,\"ldap_display_name\",\"displayname\"\r\nuser_ldap,\"ldap_dn\",\"cn=ldapread,dc=xxx,dc=com\"\r\nuser_ldap,\"ldap_email_attr\",\"mail\"\r\nuser_ldap,\"ldap_experienced_admin\",\"0\"\r\nuser_ldap,\"ldap_expert_username_attr\",\"uid\"\r\nuser_ldap,\"ldap_expert_uuid_attr\",\r\nuser_ldap,\"ldap_expert_uuid_group_attr\",\r\nuser_ldap,\"ldap_expert_uuid_user_attr\",\r\nuser_ldap,\"ldap_group_display_name\",\"cn\"\r\nuser_ldap,\"ldap_group_filter\",\"(&(objectclass=groupOfNames)(!(cn=owncloud)))\"\r\nuser_ldap,\"ldap_group_filter_mode\",\"1\"\r\nuser_ldap,\"ldap_group_member_assoc_attribute\",\"member\"\r\nuser_ldap,\"ldap_groupfilter_groups\",\r\nuser_ldap,\"ldap_groupfilter_objectclass\",\"top\"\r\nuser_ldap,\"ldap_host\",\"x.x.x.x\"\r\nuser_ldap,\"ldap_login_filter\",\"(&(&(|(objectclass=inetOrgPerson))(|(memberof=cn=owncloud,ou=groups,dc=xxx,dc=com)))(uid=%uid))\"\r\nuser_ldap,\"ldap_login_filter_mode\",\"1\"\r\nuser_ldap,\"ldap_loginfilter_attributes\",\r\nuser_ldap,\"ldap_loginfilter_email\",\"0\"\r\nuser_ldap,\"ldap_loginfilter_username\",\"1\"\r\nuser_ldap,\"ldap_nested_groups\",\"0\"\r\nuser_ldap,\"ldap_nocase\",\"0\"\r\nuser_ldap,\"ldap_override_main_server\",\"0\"\r\nuser_ldap,\"ldap_paging_size\",\"500\"\r\nuser_ldap,\"ldap_port\",\"389\"\r\nuser_ldap,\"ldap_quota_attr\",\r\nuser_ldap,\"ldap_quota_def\",\r\nuser_ldap,\"ldap_tls\",\r\nuser_ldap,\"ldap_turn_off_cert_check\",\"0\"\r\nuser_ldap,\"ldap_user_filter_mode\",\"1\"\r\nuser_ldap,\"ldap_userfilter_groups\",\"owncloud\"\r\nuser_ldap,\"ldap_userfilter_objectclass\",\"inetOrgPerson\"\r\nuser_ldap,\"ldap_userlist_filter\",\"(&(|(objectclass=inetOrgPerson))(|(memberof=cn=owncloud,ou=groups,dc=xxx,dc=com)))\"\r\nuser_ldap,\"ldap_uuid_attribute\",\"entryuuid\"\r\nuser_ldap,\"ldap_uuid_group_attribute\",\"entryuuid\"\r\nuser_ldap,\"ldap_uuid_user_attribute\",\"entryuuid\"\r\nuser_ldap,\"ocsid\",\"166061\"\r\nuser_ldap,\"types\",\"authentication\"\r\n\r\n### Client configuration\r\n**Browser:**\r\nFireFox, IE, Safari, Chrome\r\n\r\n**Operating system:**\r\nWindows 7 Pro, MAC OS 10.10 Yosemite\r\n\r\n### Logs\r\n\r\n#### Web server error log\r\n```\r\nInsert your webserver log here\r\n```\r\n\r\n#### ownCloud log (data/owncloud.log)\r\n```\r\nInsert your ownCloud log here\r\n```\r\n\r\n#### Browser log\r\n```\r\nInsert your browser log here, this could for example include:\r\n\r\na) The javascript console log\r\nb) The network log \r\nc) ...\r\n```"},"comment":{"url":"https://api.github.com/repos/owncloud/core/issues/comments/83589452","html_url":"https://github.com/owncloud/core/issues/15004#issuecomment-83589452","issue_url":"https://api.github.com/repos/owncloud/core/issues/15004","id":83589452,"user":{"login":"caineone","id":11340988,"avatar_url":"https://avatars.githubusercontent.com/u/11340988?v=3","gravatar_id":"","url":"https://api.github.com/users/caineone","html_url":"https://github.com/caineone","followers_url":"https://api.github.com/users/caineone/followers","following_url":"https://api.github.com/users/caineone/following{/other_user}","gists_url":"https://api.github.com/users/caineone/gists{/gist_id}","starred_url":"https://api.github.com/users/caineone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caineone/subscriptions","organizations_url":"https://api.github.com/users/caineone/orgs","repos_url":"https://api.github.com/users/caineone/repos","events_url":"https://api.github.com/users/caineone/events{/privacy}","received_events_url":"https://api.github.com/users/caineone/received_events","type":"User","site_admin":false},"created_at":"2015-03-19T13:53:09Z","updated_at":"2015-03-19T13:53:09Z","body":"Yes, I manage users and groups in LDAP only. This hourly job you mentioned is triggered by the cron.php ?"}}