Link sharing broken with latest Deck / Nextcloud update

Nextcloud version : 22.1.1.2
Deck version: 1.5.1
Operating system and version: Docker container (latest) on Fedora 34
Apache or nginx version: apache as included in latest Docker image (https://hub.docker.com//nextcloud)
PHP version : version as included in latest Docker image (https://hub.docker.com/
/nextcloud)

The issue you are facing:

Symptoms
Link sharing (anonymous access, with password) does not work.
After authenticating with the share password, an empty directory is displayed instead of the files contained in the shared direcroty.
Also, an error message is displayed: ““Dieses Verzeichnis ist nicht verfügbar, bitte überprüfen Sie die Logdateien oder kontaktieren Sie den Administrator””

Analysis
The Nextcloud docker image output contains the following error (of the “Deck” app). The error message is not in any of the log fies (nextcloud.log etc.) and is also not in the web interface log (Admin > Logging):

[php:notice] [pid 480] [client 172.26.0.1:43086] [owncloud][webdav][4] {"Exception":"OCA\\\\Deck\\\\NoPermissionException","Message":"Must be logged in to get the group limit","Code":0,"Trace":[{"file":"/var/www/html/apps/deck/lib/DAV/CalendarPlugin.php","line":44,"function":"get","class":"OCA\\\\Deck\\\\Service\\\\ConfigService","type":"->","args":["calendar"]},{"function":"__construct","class":"OCA\\\\Deck\\\\DAV\\\\CalendarPlugin","type":"->","args":[{"__class__":"OCA\\\\Deck\\\\DAV\\\\DeckCalendarBackend"},{"__class__":"OCA\\\\Deck\\\\Service\\\\ConfigService"}]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":106,"function":"newInstanceArgs","class":"ReflectionClass","type":"->","args":[[{"__class__":"OCA\\\\Deck\\\\DAV\\\\DeckCalendarBackend"},{"__class__":"OCA\\\\Deck\\\\Service\\\\ConfigService"}]]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":114,"function":"buildClass","class":"OC\\\\AppFramework\\\\Utility\\\\SimpleContainer","type":"->","args":[{"name":"OCA\\\\Deck\\\\DAV\\\\CalendarPlugin","__class__":"ReflectionClass"}]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":131,"function":"resolve","class":"OC\\\\AppFramework\\\\Utility\\\\SimpleContainer","type":"->","args":["*** sensitive parameter replaced ***"]},{"file":"/var/www/html/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":460,"function":"query","class":"OC\\\\AppFramework\\\\Utility\\\\SimpleContainer","type":"->","args":["*** sensitive parameter replaced ***"]},{"file":"/var/www/html/lib/private/ServerContainer.php","line":145,"function":"queryNoFallback","class":"OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer","type":"->","args":["*** sensitive parameter replaced ***"]},{"file":"/var/www/html/apps/dav/lib/AppInfo/PluginManager.php","line":256,"function":"query","class":"OC\\\\ServerContainer","type":"->","args":["*** sensitive parameter replaced ***"]},{"file":"/var/www/html/apps/dav/lib/AppInfo/PluginManager.php","line":316,"function":"createClass","class":"OCA\\\\DAV\\\\AppInfo\\\\PluginManager","type":"->","args":["*** sensitive parameter replaced ***"]},{"function":"OCA\\\\DAV\\\\AppInfo\\\\{closure}","class":"OCA\\\\DAV\\\\AppInfo\\\\PluginManager","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/apps/dav/lib/AppInfo/PluginManager.php","line":321,"function":"array_map","args":[{"__class__":"Closure"},["*** sensitive parameter replaced ***"]]},{"file":"/var/www/html/apps/dav/lib/AppInfo/PluginManager.php","line":168,"function":"loadSabreCalendarPluginsFromInfoXml","class":"OCA\\\\DAV\\\\AppInfo\\\\PluginManager","type":"->","args":[["*** sensitive parameter replaced ***"]]},{"file":"/var/www/html/apps/dav/lib/AppInfo/PluginManager.php","line":106,"function":"populate","class":"OCA\\\\DAV\\\\AppInfo\\\\PluginManager","type":"->","args":[]},{"file":"/var/www/html/apps/dav/lib/Connector/Sabre/ServerFactory.php","line":221,"function":"getAppPlugins","class":"OCA\\\\DAV\\\\AppInfo\\\\PluginManager","type":"->","args":[]},{"file":"/var/www/html/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"OCA\\\\DAV\\\\Connector\\\\Sabre\\\\{closure}","class":"OCA\\\\DAV\\\\Connector\\\\Sabre\\\\ServerFactory","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":456,"function":"emit","class":"Sabre\\\\DAV\\\\Server","type":"->","args":["beforeMethod:PROPFIND",["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\\\DAV\\\\Server","type":"->","args":["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\\\DAV\\\\Server","type":"->","args":[]},{"file":"/var/www/html/apps/dav/appinfo/v1/publicwebdav.php","line":113,"function":"exec","class":"Sabre\\\\DAV\\\\Server","type":"->","args":[]},{"file":"/var/www/html/public.php","line":80,"args":["/var/www/html/apps/dav/appinfo/v1/publicwebdav.php"],"function":"require_once"}],"File":"/var/www/html/apps/deck/lib/Service/ConfigService.php","Line":89,"CustomMessage":"--"}

Is this the first time you’ve seen this error? : Yes.

Steps to replicate it:

  1. Share a folder in Nextcloud using link sharing, set a password
  2. Try to access link share from a browser not authenticated to Nextcloud (e.g. using private browsing)
  3. Access granted, but directory empty. Error message is displayed.
  4. Check container output for Deck error message.
  5. Deactivating the “Deck” app mitigates the issue (files are displayed in shared folder)

Tracked in Deck github: https://github.com/nextcloud/deck/issues/3292

Is there a way I can roll back the Deck update to a version which is not affected?