{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/calendar/issues/505","repository_url":"https://api.github.com/repos/owncloud/calendar","labels_url":"https://api.github.com/repos/owncloud/calendar/issues/505/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/calendar/issues/505/comments","events_url":"https://api.github.com/repos/owncloud/calendar/issues/505/events","html_url":"https://github.com/owncloud/calendar/issues/505","id":153565293,"number":505,"title":"Calendar missing from user after upgrade but still visible to those it was shared to","user":{"login":"chenein","id":16447128,"avatar_url":"https://avatars.githubusercontent.com/u/16447128?v=3","gravatar_id":"","url":"https://api.github.com/users/chenein","html_url":"https://github.com/chenein","followers_url":"https://api.github.com/users/chenein/followers","following_url":"https://api.github.com/users/chenein/following{/other_user}","gists_url":"https://api.github.com/users/chenein/gists{/gist_id}","starred_url":"https://api.github.com/users/chenein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chenein/subscriptions","organizations_url":"https://api.github.com/users/chenein/orgs","repos_url":"https://api.github.com/users/chenein/repos","events_url":"https://api.github.com/users/chenein/events{/privacy}","received_events_url":"https://api.github.com/users/chenein/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-07T01:23:14Z","updated_at":"2016-05-07T01:29:40Z","closed_at":null,"body":"<!--\r\nPlease report only issues corresponding to the calendar for ownCloud 9 or later.\r\nThe old calendar, which is compatible with ownCloud 8.2 or earlier, is discontinued!\r\n\r\nMigration and CalDAV issues belong in the core repo!\r\nhttps://github.com/owncloud/core/issues\r\n-->\r\n### Steps to reproduce\r\nHave not tried to reproduce (don't have a spare server) but what I did was\r\n1. Had a working OwnCloud 8 installation with calendar app installed\r\n2. Had 2 users: A and B with 1 calendar each\r\n3. Shared these calendars between the users (i.e. A->B, B->A) as read-only\r\n4. Upgrade to OwnCloud 9.0.0\r\n(Have since upgraded to 9.0.1 and problem remains unchanged.)\r\n\r\n### Expected behaviour\r\nUpon re-enabling new Calendar application, user A should see calendars A and B, and user B should also see Calendar's A and B. Just as before.\r\n\r\n### Actual behaviour\r\n- User A sees calendars A and B (B's calendar is shown correctly as a subscription in A's account) \r\n- However, User B does not see any calendars (neither A's nor B's).\r\n\r\nThis is odd. I could understand if the calendar had been lost, but A sees B's shared calendar just fine. But to B it is as if they have never created any calendar, and they can't see A either.\r\n\r\n### Server configuration\r\n**Operating system**: FreeBSD 9.3\r\n\r\n**Web server:** Apache 2.4.18\r\n\r\n**Database:** mysql 5.6.30\r\n\r\n**PHP version:** 5.6.20, Zend Engine v2.6.0, with Zend OPcache v7.0.6-dev\r\n\r\n**ownCloud version:** (see ownCloud admin page) 9.0.1 (stable)\r\n\r\n**Calendar version:** (see ownCloud apps page) 1.1\r\n\r\n**Updated from an older ownCloud or fresh install:** Upgrade\r\n\r\n**Signing status (ownCloud 9.0 and above):**\r\n\r\nNo errors have been found.\r\n\r\n**List of activated apps:**\r\n\r\nEnabled:\r\n  - activity: 2.2.1\r\n  - calendar: true\r\n  - comments: 0.2\r\n  - contacts: true\r\n  - dav: 0.1.6\r\n  - external: 1.2\r\n  - federatedfilesharing: 0.1.0\r\n  - federation: 0.0.4\r\n  - files: 1.4.4\r\n  - files_pdfviewer: 0.8\r\n  - files_sharing: 0.9.1\r\n  - files_texteditor: 2.1\r\n  - files_trashbin: 0.8.0\r\n  - files_versions: 1.2.0\r\n  - files_videoplayer: 0.9.8\r\n  - firstrunwizard: 1.1\r\n  - gallery: 14.5.0\r\n  - notifications: 0.2.3\r\n  - provisioning_api: 0.4.1\r\n  - systemtags: 0.2\r\n  - templateeditor: 0.1\r\n  - updatenotification: 0.1.0\r\nDisabled:\r\n  - encryption\r\n  - files_external\r\n  - user_external\r\n  - user_ldap\r\n\r\n**The content of config/config.php:**\r\n\r\n{\r\n    \"system\": {\r\n        \"instanceid\": \"oce64cdb2f04\",\r\n        \"passwordsalt\": \"***REMOVED SENSITIVE VALUE***\",\r\n        \"secret\": \"***REMOVED SENSITIVE VALUE***\",\r\n        \"trusted_domains\": [\r\n            \"secure.orange-carb.org\"\r\n        ],\r\n        \"datadirectory\": \"\\/usr\\/local\\/owncloud-data\",\r\n        \"overwrite.cli.url\": \"https:\\/\\/secure.orange-carb.org\\/owncloud\",\r\n        \"overwritewebroot\": \"\\/owncloud\",\r\n        \"dbtype\": \"mysql\",\r\n        \"version\": \"9.0.1.3\",\r\n        \"dbname\": \"owncloud\",\r\n        \"dbhost\": \"127.0.0.1\",\r\n        \"dbtableprefix\": \"oc_\",\r\n        \"dbuser\": \"***REMOVED SENSITIVE VALUE***\",\r\n        \"dbpassword\": \"***REMOVED SENSITIVE VALUE***\",\r\n        \"installed\": true,\r\n        \"forcessl\": true,\r\n        \"mail_smtpmode\": \"sendmail\",\r\n        \"mail_from_address\": \"owncloud\",\r\n        \"mail_domain\": \"orange-carb.org\",\r\n        \"memcache.local\": \"\\\\OC\\\\Memcache\\\\APCu\",\r\n        \"defaultapp\": \"calendar\",\r\n        \"theme\": \"\",\r\n        \"maintenance\": false,\r\n        \"loglevel\": 2,\r\n        \"trashbin_retention_obligation\": \"auto\"\r\n    }\r\n}\r\n\r\n**Are you using external storage, if yes which one:** local/smb/sftp/...\r\n\r\nlocal\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\nno\r\n\r\n### Client configuration\r\n**Browser:** Safari\r\n\r\n**Operating system:** Mac OS X\r\n\r\n**CalDAV-clients:** Apple Calendar, Android CalDAV-Sync\r\n\r\n### Logs\r\n#### Web server error log\r\nNothing relevant\r\n\r\n#### ownCloud log (data/owncloud.log)\r\n{\"reqId\":\"UZrfDeunWFAQb3\\/39DM2\",\"remoteAddr\":\"10.0.2.1\",\"app\":\"OCP\\\\Share\",\"message\":\"Sharing backend for principals not found\",\"level\":3,\"time\":\"2016-05-06T01:48:13+00:00\",\"method\":\"GET\",\"url\":\"\\/owncloud\\/ocs\\/v1.php\\/apps\\/files_sharing\\/api\\/v1\\/sharees?format=json&search=j&perPage=200&itemType=principals\",\"user\":\"cmh\"}\r\n{\"reqId\":\"BZqcOmr70gvT4kMqSEsu\",\"remoteAddr\":\"10.0.2.1\",\"app\":\"OCP\\\\Share\",\"message\":\"Sharing backend for principals not found\",\"level\":3,\"time\":\"2016-05-06T01:48:13+00:00\",\"method\":\"GET\",\"url\":\"\\/owncloud\\/ocs\\/v1.php\\/apps\\/files_sharing\\/api\\/v1\\/sharees?format=json&search=je&perPage=200&itemType=principals\",\"user\":\"cmh\"}\r\n{\"reqId\":\"3ro6XfVNQYyGeqwS+lty\",\"remoteAddr\":\"10.0.2.1\",\"app\":\"OCP\\\\Share\",\"message\":\"Sharing backend for principals not found\",\"level\":3,\"time\":\"2016-05-06T01:48:13+00:00\",\"method\":\"GET\",\"url\":\"\\/owncloud\\/ocs\\/v1.php\\/apps\\/files_sharing\\/api\\/v1\\/sharees?format=json&search=jes&perPage=200&itemType=principals\",\"user\":\"cmh\"}\r\n{\"reqId\":\"irnt9dL6YpBHUnAna1IV\",\"remoteAddr\":\"10.0.2.1\",\"app\":\"OCP\\\\Share\",\"message\":\"Sharing backend for principals not found\",\"level\":3,\"time\":\"2016-05-06T01:48:14+00:00\",\"method\":\"GET\",\"url\":\"\\/owncloud\\/ocs\\/v1.php\\/apps\\/files_sharing\\/api\\/v1\\/sharees?format=json&search=jesc&perPage=200&itemType=principals\",\"user\":\"cmh\"}\r\n{\"reqId\":\"1UZkMpmjQD2MKc1JGtx\\/\",\"remoteAddr\":\"10.0.2.1\",\"app\":\"OCP\\\\Share\",\"message\":\"Sharing backend for principals not found\",\"level\":3,\"time\":\"2016-05-06T01:48:14+00:00\",\"method\":\"GET\",\"url\":\"\\/owncloud\\/ocs\\/v1.php\\/apps\\/files_sharing\\/api\\/v1\\/sharees?format=json&search=jesch&perPage=200&itemType=principals\",\"user\":\"cmh\"}\r\n{\"reqId\":\"DvagbazUuySGX7TB6DhL\",\"remoteAddr\":\"10.0.2.1\",\"app\":\"OCP\\\\Share\",\"message\":\"Sharing backend for principals not found\",\"level\":3,\"time\":\"2016-05-06T01:48:14+00:00\",\"method\":\"GET\",\"url\":\"\\/owncloud\\/ocs\\/v1.php\\/apps\\/files_sharing\\/api\\/v1\\/sharees?format=json&search=jesche&perPage=200&itemType=principals\",\"user\":\"cmh\"}\r\n{\"reqId\":\"KvoFSa2H0Dd+Bpmo2rDy\",\"remoteAddr\":\"10.0.2.1\",\"app\":\"OCP\\\\Share\",\"message\":\"Sharing backend for principals not found\",\"level\":3,\"time\":\"2016-05-06T01:48:15+00:00\",\"method\":\"GET\",\"url\":\"\\/owncloud\\/ocs\\/v1.php\\/apps\\/files_sharing\\/api\\/v1\\/sharees?format=json&search=jeschel&perPage=200&itemType=principals\",\"user\":\"cmh\"}\r\n\r\n\r\n#### Browser log\r\nNothing in javascript console."},"comment":{"url":"https://api.github.com/repos/owncloud/calendar/issues/comments/217596856","html_url":"https://github.com/owncloud/calendar/issues/505#issuecomment-217596856","issue_url":"https://api.github.com/repos/owncloud/calendar/issues/505","id":217596856,"user":{"login":"chenein","id":16447128,"avatar_url":"https://avatars.githubusercontent.com/u/16447128?v=3","gravatar_id":"","url":"https://api.github.com/users/chenein","html_url":"https://github.com/chenein","followers_url":"https://api.github.com/users/chenein/followers","following_url":"https://api.github.com/users/chenein/following{/other_user}","gists_url":"https://api.github.com/users/chenein/gists{/gist_id}","starred_url":"https://api.github.com/users/chenein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chenein/subscriptions","organizations_url":"https://api.github.com/users/chenein/orgs","repos_url":"https://api.github.com/users/chenein/repos","events_url":"https://api.github.com/users/chenein/events{/privacy}","received_events_url":"https://api.github.com/users/chenein/received_events","type":"User","site_admin":false},"created_at":"2016-05-07T01:29:40Z","updated_at":"2016-05-07T01:29:40Z","body":"World according to user B\r\n<img width=\"247\" alt=\"userb\" src=\"https://cloud.githubusercontent.com/assets/16447128/15089470/a26a1b9c-13d1-11e6-84bd-d4e8058b1f3e.png\">\r\n"}}