{"action":"created","issue":{"url":"https://api.github.com/repos/nextcloud/server/issues/2747","repository_url":"https://api.github.com/repos/nextcloud/server","labels_url":"https://api.github.com/repos/nextcloud/server/issues/2747/labels{/name}","comments_url":"https://api.github.com/repos/nextcloud/server/issues/2747/comments","events_url":"https://api.github.com/repos/nextcloud/server/issues/2747/events","html_url":"https://github.com/nextcloud/server/issues/2747","id":196365084,"number":2747,"title":"Edit rights for shared calendar group not working via CalDAV update from NC 10.0.1 to 10.0.2","user":{"login":"groentebroer","id":1811817,"avatar_url":"https://avatars.githubusercontent.com/u/1811817?v=3","gravatar_id":"","url":"https://api.github.com/users/groentebroer","html_url":"https://github.com/groentebroer","followers_url":"https://api.github.com/users/groentebroer/followers","following_url":"https://api.github.com/users/groentebroer/following{/other_user}","gists_url":"https://api.github.com/users/groentebroer/gists{/gist_id}","starred_url":"https://api.github.com/users/groentebroer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/groentebroer/subscriptions","organizations_url":"https://api.github.com/users/groentebroer/orgs","repos_url":"https://api.github.com/users/groentebroer/repos","events_url":"https://api.github.com/users/groentebroer/events{/privacy}","received_events_url":"https://api.github.com/users/groentebroer/received_events","type":"User","site_admin":false},"labels":[{"id":386379231,"url":"https://api.github.com/repos/nextcloud/server/labels/bug","name":"bug","color":"ee0701","default":true},{"id":389522192,"url":"https://api.github.com/repos/nextcloud/server/labels/feature:%20dav","name":"feature: dav","color":"c2e0c6","default":false},{"id":389002970,"url":"https://api.github.com/repos/nextcloud/server/labels/needs%20info","name":"needs info","color":"006b75","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-12-19T09:19:20Z","updated_at":"2016-12-22T10:43:53Z","closed_at":null,"body":"### Steps to reproduce\r\n1. Install NC 10.0.1, Create a group with 2 users\r\n2. Create a calender at 1 user and share it wit the group. Make the share with \"edit\" rights\r\n3. Try to edit via CalDav the shared calendar as user 2.\r\n\r\n### Expected behaviour\r\nThe user should be able to edit the calendar.\r\n\r\n### Actual behaviour\r\nAn error is thrown in the log:\r\n\r\n> \"app\":\"caldav\",\"message\":\"Exception: {\\\"Message\\\":\\\"HTTP\\\\\\/1.1 404 Principal with name users not found\\\",\\\"Exception\\\":\\\"Sabre\\\\\\\\DAV\\\\\\\\Exception\\\\\\\\NotFound\\\",\\\"Code\\\":0,\\\"Trace\\\":\\\"#0 \\\\\\/var\\\\\\/www\\\\\\/html\\\\\\/nextcloud_10.0.2\\\\\\/3rdparty\\\\\\/sabre\\\\\\/dav\\\\\\/lib\\\\\\/DAV\\\\\\/Tree.php(76)\r\n\r\n### Server configuration\r\n**Operating system**: Linux\r\n\r\n**Web server:** Apache\r\n\r\n**Database:** Mysql / MirandaDB\r\n\r\n**PHP version:** 5.6.2.9\r\n\r\n**Nextcloud version:** 10.0.2\r\n\r\n**Updated from an older Nextcloud/ownCloud or fresh install:**\r\nUpdated from 10.0.1\r\n(Which was updated from a previous OwnCloud)\r\n\r\n**Where did you install Nextcloud from:**\r\nSource\r\n\r\n**List of activated apps:**\r\n<details>\r\n<summary>App list</summary>\r\n```\r\nEnabled:\r\n  - activity: 2.3.2\r\n  - calendar: 1.4.1\r\n  - comments: 1.0.0\r\n  - dav: 1.0.1\r\n  - federatedfilesharing: 1.0.1\r\n  - federation: 1.0.1\r\n  - files: 1.5.2\r\n  - files_sharing: 1.0.0\r\n  - files_texteditor: 2.1\r\n  - files_trashbin: 1.0.0\r\n  - files_versions: 1.3.0\r\n  - files_videoplayer: 0.9.8\r\n  - news: 9.0.4\r\n  - notifications: 0.3.0\r\n  - password_policy: 1.0.0\r\n  - provisioning_api: 1.0.0\r\n  - serverinfo: 1.1.1\r\n  - survey_client: 0.1.5\r\n  - systemtags: 1.0.2\r\n  - templateeditor: 0.1\r\n  - theming: 1.0.1\r\n  - updatenotification: 1.0.1\r\n  - workflowengine: 1.0.1\r\nDisabled:\r\n  - admin_audit\r\n  - encryption\r\n  - external\r\n  - files_accesscontrol\r\n  - files_automatedtagging\r\n  - files_external\r\n  - files_pdfviewer\r\n  - files_retention\r\n  - firstrunwizard\r\n  - gallery\r\n  - user_external\r\n  - user_ldap\r\n  - user_saml\r\n```\r\n</details>\r\n\r\n**The content of config/config.php:**\r\n<details>\r\n<summary>Config report</summary>\r\n```\r\n{\r\n    \"system\": {\r\n        \"instanceid\": \"oc3hx226ao1w\",\r\n        \"passwordsalt\": \"***REMOVED SENSITIVE VALUE***\",\r\n        \"secret\": \"***REMOVED SENSITIVE VALUE***\",\r\n        \"trusted_domains\": [\r\n            \"scrubbed\"\r\n        ],\r\n        \"datadirectory\": \"\\/var\\/www\\/html\\/nextcloud\\/data\",\r\n        \"overwrite.cli.url\": \"https:\\/\\/localhost\\/nextcloud\",\r\n        \"dbtype\": \"mysql\",\r\n        \"version\": \"9.1.2.2\",\r\n        \"dbname\": \"owncloud\",\r\n        \"dbhost\": \"localhost\",\r\n        \"dbtableprefix\": \"oc_\",\r\n        \"dbuser\": \"***REMOVED SENSITIVE VALUE***\",\r\n        \"dbpassword\": \"***REMOVED SENSITIVE VALUE***\",\r\n        \"logtimezone\": \"UTC\",\r\n        \"installed\": true,\r\n        \"updatechecker\": false,\r\n        \"theme\": \"\",\r\n        \"loglevel\": 2,\r\n        \"maintenance\": false,\r\n        \"appstore.experimental.enabled\": true\r\n    }\r\n}\r\n```\r\n</details>\r\n\r\n**Are you using external storage, if yes which one:** no\r\n\r\n**Are you using encryption:** yes\r\n\r\n**Are you using an external user-backend, if yes which one:** No\r\n\r\n\r\n### Client configuration\r\n**Browser:** FireFox\r\n\r\n**Operating system:** Windows\r\n\r\n### Logs\r\n#### Web server error log\r\n<details>\r\n<summary>Web server error log</summary>\r\n```\r\nInsert your webserver log here\r\n```\r\n</details>\r\n\r\n#### Nextcloud log (data/nextcloud.log)\r\n<details>\r\n<summary>Nextcloud log</summary>\r\n```\r\n{\r\n\t\"reqId\": \"WFU9m6JVY3Skr1249SfMSwAAAAU\",\r\n\t\"remoteAddr\": \"<scrubbed>\",\r\n\t\"app\": \"caldav\",\r\n\t\"message\": \"Exception: {\\\"Message\\\":\\\"HTTP\\\\\\/1.1 404 Principal with name users not found\\\",\\\"Exception\\\":\\\"Sabre\\\\\\\\DAV\\\\\\\\Exception\\\\\\\\NotFound\\\",\\\"Code\\\":0,\\\"Trace\\\":\\\"#0 \\\\\\/var\\\\\\/www\\\\\\/html\\\\\\/nextcloud_10.0.2\\\\\\/3rdparty\\\\\\/sabre\\\\\\/dav\\\\\\/lib\\\\\\/DAV\\\\\\/Tree.php(76): Sabre\\\\\\\\DAVACL\\\\\\\\AbstractPrincipalCollection->getChild('users')\\\\n#1 \\\\\\/var\\\\\\/www\\\\\\/html\\\\\\/nextcloud_10.0.2\\\\\\/3rdparty\\\\\\/sabre\\\\\\/dav\\\\\\/lib\\\\\\/DAV\\\\\\/Tree.php(71): Sabre\\\\\\\\DAV\\\\\\\\Tree->getNodeForPath('principals\\\\\\/user...')\\\\n#2 \\\\\\/var\\\\\\/www\\\\\\/html\\\\\\/nextcloud_10.0.2\\\\\\/3rdparty\\\\\\/sabre\\\\\\/dav\\\\\\/lib\\\\\\/DAV\\\\\\/Server.php(903): Sabre\\\\\\\\DAV\\\\\\\\Tree->getNodeForPath('principals\\\\\\/user...')\\\\n#3 \\\\\\/var\\\\\\/www\\\\\\/html\\\\\\/nextcloud_10.0.2\\\\\\/3rdparty\\\\\\/sabre\\\\\\/dav\\\\\\/lib\\\\\\/DAV\\\\\\/Server.php(768): Sabre\\\\\\\\DAV\\\\\\\\Server->getPropertiesForPath('principals\\\\\\/user...', Array, 0)\\\\n#4 \\\\\\/var\\\\\\/www\\\\\\/html\\\\\\/nextcloud_10.0.2\\\\\\/3rdparty\\\\\\/sabre\\\\\\/dav\\\\\\/lib\\\\\\/CalDAV\\\\\\/Schedule\\\\\\/Plugin.php(569): Sabre\\\\\\\\DAV\\\\\\\\Server->getProperties('principals\\\\\\/user...', Array)\\\\n#5 \\\\\\/var\\\\\\/www\\\\\\/html\\\\\\/nextcloud_10.0.2\\\\\\/3rdparty\\\\\\/sabre\\\\\\/dav\\\\\\/lib\\\\\\/CalDAV\\\\\\/Schedule\\\\\\/Plugin.php(285): Sabre\\\\\\\\CalDAV\\\\\\\\Schedule\\\\\\\\Plugin->getAddressesForPrincipal('principals\\\\\\/user...')\\\\n#6 [internal function]: Sabre\\\\\\\\CalDAV\\\\\\\\Schedule\\\\\\\\Plugin->calendarObjectChange(Object(Sabre\\\\\\\\HTTP\\\\\\\\Request), Object(Sabre\\\\\\\\HTTP\\\\\\\\Response), Object(Sabre\\\\\\\\VObject\\\\\\\\Component\\\\\\\\VCalendar), 'calendars\\\\\\/user2...', false, true)\\\\n#7 \\\\\\/var\\\\\\/www\\\\\\/html\\\\\\/nextcloud_10.0.2\\\\\\/3rdparty\\\\\\/sabre\\\\\\/event\\\\\\/lib\\\\\\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\\\\n#8 \\\\\\/var\\\\\\/www\\\\\\/html\\\\\\/nextcloud_10.0.2\\\\\\/3rdparty\\\\\\/sabre\\\\\\/dav\\\\\\/lib\\\\\\/CalDAV\\\\\\/Plugin.php(891): Sabre\\\\\\\\Event\\\\\\\\EventEmitter->emit('calendarObjectC...', Array)\\\\n#9 \\\\\\/var\\\\\\/www\\\\\\/html\\\\\\/nextcloud_10.0.2\\\\\\/3rdparty\\\\\\/sabre\\\\\\/dav\\\\\\/lib\\\\\\/CalDAV\\\\\\/Plugin.php(772): Sabre\\\\\\\\CalDAV\\\\\\\\Plugin->validateICalendar('BEGIN:VCALENDAR...', 'calendars\\\\\\/user2...', false, Object(Sabre\\\\\\\\HTTP\\\\\\\\Request), Object(Sabre\\\\\\\\HTTP\\\\\\\\Response), true)\\\\n#10 [internal function]: Sabre\\\\\\\\CalDAV\\\\\\\\Plugin->beforeCreateFile('calendars\\\\\\/user2...', 'BEGIN:VCALENDAR...', Object(OCA\\\\\\\\DAV\\\\\\\\CalDAV\\\\\\\\Calendar), false)\\\\n#11 \\\\\\/var\\\\\\/www\\\\\\/html\\\\\\/nextcloud_10.0.2\\\\\\/3rdparty\\\\\\/sabre\\\\\\/event\\\\\\/lib\\\\\\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\\\\n#12 \\\\\\/var\\\\\\/www\\\\\\/html\\\\\\/nextcloud_10.0.2\\\\\\/3rdparty\\\\\\/sabre\\\\\\/dav\\\\\\/lib\\\\\\/DAV\\\\\\/Server.php(1034): Sabre\\\\\\\\Event\\\\\\\\EventEmitter->emit('beforeCreateFil...', Array)\\\\n#13 \\\\\\/var\\\\\\/www\\\\\\/html\\\\\\/nextcloud_10.0.2\\\\\\/3rdparty\\\\\\/sabre\\\\\\/dav\\\\\\/lib\\\\\\/DAV\\\\\\/CorePlugin.php(523): Sabre\\\\\\\\DAV\\\\\\\\Server->createFile('calendars\\\\\\/user2...', Resource id #433, NULL)\\\\n#14 [internal function]: Sabre\\\\\\\\DAV\\\\\\\\CorePlugin->httpPut(Object(Sabre\\\\\\\\HTTP\\\\\\\\Request), Object(Sabre\\\\\\\\HTTP\\\\\\\\Response))\\\\n#15 \\\\\\/var\\\\\\/www\\\\\\/html\\\\\\/nextcloud_10.0.2\\\\\\/3rdparty\\\\\\/sabre\\\\\\/event\\\\\\/lib\\\\\\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\\\\n#16 \\\\\\/var\\\\\\/www\\\\\\/html\\\\\\/nextcloud_10.0.2\\\\\\/3rdparty\\\\\\/sabre\\\\\\/dav\\\\\\/lib\\\\\\/DAV\\\\\\/Server.php(459): Sabre\\\\\\\\Event\\\\\\\\EventEmitter->emit('method:PUT', Array)\\\\n#17 \\\\\\/var\\\\\\/www\\\\\\/html\\\\\\/nextcloud_10.0.2\\\\\\/3rdparty\\\\\\/sabre\\\\\\/dav\\\\\\/lib\\\\\\/DAV\\\\\\/Server.php(248): Sabre\\\\\\\\DAV\\\\\\\\Server->invokeMethod(Object(Sabre\\\\\\\\HTTP\\\\\\\\Request), Object(Sabre\\\\\\\\HTTP\\\\\\\\Response))\\\\n#18 \\\\\\/var\\\\\\/www\\\\\\/html\\\\\\/nextcloud_10.0.2\\\\\\/apps\\\\\\/dav\\\\\\/appinfo\\\\\\/v1\\\\\\/caldav.php(86): Sabre\\\\\\\\DAV\\\\\\\\Server->exec()\\\\n#19 \\\\\\/var\\\\\\/www\\\\\\/html\\\\\\/nextcloud_10.0.2\\\\\\/remote.php(165): require_once('\\\\\\/var\\\\\\/www\\\\\\/html\\\\\\/n...')\\\\n#20 {main}\\\",\\\"File\\\":\\\"\\\\\\/var\\\\\\/www\\\\\\/html\\\\\\/nextcloud_10.0.2\\\\\\/3rdparty\\\\\\/sabre\\\\\\/dav\\\\\\/lib\\\\\\/DAVACL\\\\\\/AbstractPrincipalCollection.php\\\",\\\"Line\\\":118,\\\"User\\\":\\\"user2\\\"}\",\r\n\t\"level\": 0,\r\n\t\"time\": \"2016-12-17T13:29:01+00:00\",\r\n\t\"method\": \"PUT\",\r\n\t\"url\": \"\\/nextcloud\\/remote.php\\/caldav\\/calendars\\/user2\\/calendar_shared_by_user1\\/9e64ab6c-f853-45e3-b1c4-f3e7a5b37917.1481981343487.ics\",\r\n\t\"user\": \"user2\",\r\n\t\"version\": \"9.1.2.2\"\r\n}\r\n```\r\n</details>\r\n"},"comment":{"url":"https://api.github.com/repos/nextcloud/server/issues/comments/268773772","html_url":"https://github.com/nextcloud/server/issues/2747#issuecomment-268773772","issue_url":"https://api.github.com/repos/nextcloud/server/issues/2747","id":268773772,"user":{"login":"marc0s","id":273769,"avatar_url":"https://avatars.githubusercontent.com/u/273769?v=3","gravatar_id":"","url":"https://api.github.com/users/marc0s","html_url":"https://github.com/marc0s","followers_url":"https://api.github.com/users/marc0s/followers","following_url":"https://api.github.com/users/marc0s/following{/other_user}","gists_url":"https://api.github.com/users/marc0s/gists{/gist_id}","starred_url":"https://api.github.com/users/marc0s/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marc0s/subscriptions","organizations_url":"https://api.github.com/users/marc0s/orgs","repos_url":"https://api.github.com/users/marc0s/repos","events_url":"https://api.github.com/users/marc0s/events{/privacy}","received_events_url":"https://api.github.com/users/marc0s/received_events","type":"User","site_admin":false},"created_at":"2016-12-22T10:43:53Z","updated_at":"2016-12-22T10:43:53Z","body":"I can confirm that the URL rewrite fixed it on my side as well."}}
{"actor":{"display_login":"marc0s"}}