Unable to share directories with users, individual file shares work fine

Nextcloud version: 22.1.0 (Docker Image)
Operating system and version: Linux 5.10.0-0.bpo.8-amd64 x86_64
Apache or nginx version: NGINX Proxy Manager v2.9.8
PHP version: 7.4.23

The issue you are facing:
Attempting to share outside a directory (but not an individual file) gives an error.

Is this the first time you’ve seen this error? yes

Steps to replicate it:

1: Go to a directory and create a share
2: Provide share link to user (or even go to it myself)
3: Get error message

I’m getting a weird issue when I try to share directories, but not single files with nextcloud. The share link, when opened, just shows this:

With the error being “This directory is unavailable, please check the logs or contact the administrator”

The user can actually go click “download all files” and happily download the contents of the folder, but they cannot navigate it.

In my logs I’m getting this error when the user navigates to the share link

FatalwebdavOCA\Deck\NoPermissionException: Must be logged in to get the group limit



<<closure>>
OCA\Deck\DAV\CalendarPlugin->__construct(OCA\Deck\DAV ... {}, OCA\Deck\Ser ... {})

/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php - line 106:
ReflectionClass->newInstanceArgs([ OCA\Deck\D ... }])

/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php - line 114:
OC\AppFramework\Utility\SimpleContainer->buildClass(ReflectionCl ... "})

/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php - line 131:
OC\AppFramework\Utility\SimpleContainer->resolve("*** sensiti ... *")

/var/www/html/lib/private/AppFramework/DependencyInjection/DIContainer.php - line 460:
OC\AppFramework\Utility\SimpleContainer->query("*** sensiti ... *")

/var/www/html/lib/private/ServerContainer.php - line 145:
OC\AppFramework\DependencyInjection\DIContainer->queryNoFallback("*** sensiti ... *")

/var/www/html/apps/dav/lib/AppInfo/PluginManager.php - line 256:
OC\ServerContainer->query("*** sensiti ... *")

/var/www/html/apps/dav/lib/AppInfo/PluginManager.php - line 316:
OCA\DAV\AppInfo\PluginManager->createClass("*** sensiti ... *")

<<closure>>
OCA\DAV\AppInfo\PluginManager->OCA\DAV\AppInfo\{closure}("*** sensiti ... *")

/var/www/html/apps/dav/lib/AppInfo/PluginManager.php - line 321:
array_map(Closure {}, [ "*** sensi ... "])

/var/www/html/apps/dav/lib/AppInfo/PluginManager.php - line 168:
OCA\DAV\AppInfo\PluginManager->loadSabreCalendarPluginsFromInfoXml([ "*** sensi ... "])

/var/www/html/apps/dav/lib/AppInfo/PluginManager.php - line 106:
OCA\DAV\AppInfo\PluginManager->populate()

/var/www/html/apps/dav/lib/Connector/Sabre/ServerFactory.php - line 221:
OCA\DAV\AppInfo\PluginManager->getAppPlugins()

/var/www/html/3rdparty/sabre/event/lib/WildcardEmitterTrait.php - line 89:
OCA\DAV\Connector\Sabre\ServerFactory->OCA\DAV\Connector\Sabre\{closure}("*** sensiti ... *")

/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php - line 456:
Sabre\DAV\Server->emit("beforeMethod:PROPFIND", [ "*** sensi ... "])

/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php - line 253:
Sabre\DAV\Server->invokeMethod("*** sensiti ... *", "*** sensiti ... *")

/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php - line 321:
Sabre\DAV\Server->start()

/var/www/html/apps/dav/appinfo/v1/publicwebdav.php - line 113:
Sabre\DAV\Server->exec()

/var/www/html/public.php - line 80:
require_once("/var/www/ht ... p")

Workaround: disabling the “deck” app works for me.