owncloud / calendar

Calendar app for ownCloud
GNU Affero General Public License v3.0
121 stars 43 forks source link

Calendar missing from user after upgrade but still visible to those it was shared to #505

Open chenein opened 8 years ago

chenein commented 8 years ago

Steps to reproduce

Have not tried to reproduce (don't have a spare server) but what I did was

  1. Had a working OwnCloud 8 installation with calendar app installed
  2. Had 2 users: A and B with 1 calendar each
  3. Shared these calendars between the users (i.e. A->B, B->A) as read-only
  4. Upgrade to OwnCloud 9.0.0 (Have since upgraded to 9.0.1 and problem remains unchanged.)

    Expected behaviour

Upon re-enabling new Calendar application, user A should see calendars A and B, and user B should also see Calendars A and B. Just as before.

Actual behaviour

This 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's either.

Server configuration

Operating system: FreeBSD 9.3

Web server: Apache 2.4.18

Database: mysql 5.6.30

PHP version: 5.6.20, Zend Engine v2.6.0, with Zend OPcache v7.0.6-dev

ownCloud version: (see ownCloud admin page) 9.0.1 (stable)

Calendar version: (see ownCloud apps page) 1.1

Updated from an older ownCloud or fresh install: Upgrade

Signing status (ownCloud 9.0 and above):

No errors have been found.

List of activated apps:

Enabled:

The content of config/config.php:

{ "system": { "instanceid": "oce64cdb2f04", "passwordsalt": "_REMOVED SENSITIVE VALUE_", "secret": "_REMOVED SENSITIVE VALUE_", "trusteddomains": [ "secure.orange-carb.org" ], "datadirectory": "\/usr\/local\/owncloud-data", "overwrite.cli.url": "https:\/\/secure.orange-carb.org\/owncloud", "overwritewebroot": "\/owncloud", "dbtype": "mysql", "version": "9.0.1.3", "dbname": "owncloud", "dbhost": "127.0.0.1", "dbtableprefix": "oc", "dbuser": "_REMOVED SENSITIVE VALUE_", "dbpassword": "_REMOVED SENSITIVE VALUE_", "installed": true, "forcessl": true, "mail_smtpmode": "sendmail", "mail_from_address": "owncloud", "mail_domain": "orange-carb.org", "memcache.local": "\OC\Memcache\APCu", "defaultapp": "calendar", "theme": "", "maintenance": false, "loglevel": 2, "trashbin_retention_obligation": "auto" } }

Are you using external storage, if yes which one: local/smb/sftp/...

local

Are you using encryption: yes/no

no

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...

no

Client configuration

Browser: Safari

Operating system: Mac OS X

CalDAV-clients: Apple Calendar, Android CalDAV-Sync

Logs

Web server error log

Nothing relevant

ownCloud log (data/owncloud.log)

{"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"} {"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"} {"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"} {"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"} {"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"} {"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"} {"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"}

Browser log

Nothing in javascript console.

chenein commented 8 years ago

World according to User A

usera
chenein commented 8 years ago

World according to user B

userb
georgehrke commented 8 years ago

Hm, do you see all calendars in a CalDAV client?

chenein commented 8 years ago

Further information. The issue appears to be a browser issue. It is reproducible on Safari 8.0.5 on Mac OS X 10.10.3. Using a different browser seems to solve the issue.

We experienced an unrelated problem with the iCal client, but this appeared to be an authentication issue and was resolved.

Not sure why it doesn't work on Safari 8.0.5.

georgehrke commented 8 years ago

Is there really nothing in the javascript console for user B?