Deck calendar integration visibility cannot be toggled for board sharees
How to use GitHub
- Please use the 👍 reaction to show that you are affected by the same issue.
- Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
- Subscribe to receive notifications on status change and new comments.
Describe the bug As a Deck board sharee, I cannot hide calendars. Invoking the usual action ends up with an error (see below).
To Reproduce Steps to reproduce the behavior:
- User Alice shares Board Foo with user Bob.
- User Alice creates some cards with due dates.
- Alice opens their calendar and sees a list of their calendars, among which there is one called "Deck: Foo". The above set due dates appear in the calendar view as events.
- Alice clicks on the calendar list entry "Deck: Foo".
- The entries for "Deck: Foo" are not visible any more, the list entry is greyed out.
- Bob opens their calendar and sees a list of their calendars, among which there is one called "Deck: Foo". The above set due dates appear in the calendar view as events.
- Bob clicks on the calendar list entry "Deck: Foo".
Expected behavior The entries for "Deck: Foo" are not visible any more, the list entry is greyed out.
Actual behavior The entries for "Deck: Foo" are still visible. The list entry is not greyed out. An error message appears: An error occured, unable to change visibility of the calendar.
Screenshots

Deck 1.2.2 Calendar 2.1.2 Nextcloud 20.0.4
Same problem here with Deck 1.2.2 Calendar 2.0.4 Nextcloud 19.0.6
It is still a problem in the following versions: Nextcloud 20.0.7 Calendar 2.1.3 Deck 1.2.4
This can be "solved" by giving the sharee or Bob the permission "can manage" for the deck but that is definitely not how i want to give permissions in my system. It should be possible for Bob to deactivate the view of the deck calendar even without any permissions on the deck.
Still a problem with Nextcloud 22.1.1 and Deck 1.5.3 and calendar 2.3.3
Snippet from the log when trying to hide the calendar:
"user":"admin","app":"webdav","method":"PROPPATCH","url":"/remote.php/dav/calendars/admin/app-generated--deck--board-4/","message":"Node with name 'app-generated--deck--board-4' could not be found","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.63 Safari/537.36","version":"22.1.1.2","exception":{"Exception":"Sabre\\DAV\\Exception\\NotFound","Message":"Node with name 'app-generated--deck--board-4' could not be found","Code":0,"Trace":[{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAVACL/Plugin.php","line":863,"function":"checkPrivileges","class":"OCA\\DAV\\Connector\\Sabre\\DavAclPlugin","type":"->","args":["calendars/admin/app-generated--deck--board-4","{DAV:}write-properties"]},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/DavAclPlugin.php","line":98,"function":"beforeMethod","class":"Sabre\\DAVACL\\Plugin","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"beforeMethod","class":"OCA\\DAV\\Connector\\Sabre\\DavAclPlugin","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":456,"function":"emit","class":"Sabre\\DAV\\Server","type":"->","args":["beforeMethod:PROPPATCH",[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/nextcloud/apps/dav/lib/Server.php","line":333,"function":"exec","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/nextcloud/remote.php","line":166,"args":["/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/DavAclPlugin.php","Line":65,"CustomMessage":"--"}}