[Bug]: public shared folder fails to load from SMB connected fileserver
⚠️ This issue respects the following points: ⚠️
- [X] This is a bug, not a question or a configuration/webserver/proxy issue.
- [X] This issue is not already reported on Github (I've searched it).
- [X] Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
- [X] I agree to follow Nextcloud's Code of Conduct.
Bug description
NextCloud is connected to a local fileserver via SMB. Authentication is done via LDAP. Whenever a folder is being shared to someone external (no authentication / public) from the the fileserver via “Share link”, the page fails to load. All you can see is a circle spinning. Even though the page fails to fully load, it is possible to download the files.

Steps to reproduce
- Have an external connected fileserver via SMB
- Share folder from fileshare without any authentication (public sharing)
Expected behavior
All files within the folder should be displayed as any other folder.
Installation method
Manual installation
Operating system
Debian/Ubuntu
PHP engine version
PHP 7.4
Web server
Apache (supported)
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Fresh Nextcloud Server install
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
- [ ] Default user-backend (database)
- [X] LDAP/ Active Directory
- [ ] SSO - SAML
- [ ] Other
Configuration report
{
"system": {
"instanceid": "***REMOVED SENSITIVE VALUE***",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"192.168.201.10",
"cloud.voncanal.de"
],
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"dbtype": "mysql",
"version": "24.0.1.1",
"overwrite.cli.url": "http:\/\/192.168.201.10",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "",
"dbtableprefix": "oc_",
"mysql.utf8mb4": true,
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"proxy": "192.168.201.3:3128",
"log_type": "file",
"logfile": "nextcloud.log",
"loglevel": 0,
"logdateformat": "F d, Y H:i:s",
"skeletondirectory": "\/var\/www\/html\/nextcloud\/defaultFiles",
"memcache.local": "\\OC\\Memcache\\APCu",
"memcache.distributed": "\\OC\\Memcache\\Redis",
"redis": {
"host": "***REMOVED SENSITIVE VALUE***",
"port": 0,
"dbindex": 0,
"password": "***REMOVED SENSITIVE VALUE***",
"timeout": 1.5
},
"ldapProviderFactory": "OCA\\User_LDAP\\LDAPProviderFactory",
"app_install_overwrite": [
"twofactor_admin"
],
"twofactor_enforced": "true",
"twofactor_enforced_groups": [
"Gruppe.Nextcloud",
"Gruppe.Nextcloud-Share"
],
"twofactor_enforced_excluded_groups": [
"Kein-Zweifaktor"
],
"maintenance": false,
"trusted_proxies": "***REMOVED SENSITIVE VALUE***",
"forwarded_for_headers": [
"HTTP_X_FORWARDED_FOR"
]
}
}
List of activated Apps
Enabled:
- accessibility: 1.10.0
- activity: 2.16.0
- circles: 24.0.0
- cloud_federation_api: 1.7.0
- comments: 1.14.0
- contactsinteraction: 1.5.0
- dav: 1.22.0
- federatedfilesharing: 1.14.0
- federation: 1.14.0
- files: 1.19.0
- files_external: 1.16.1
- files_pdfviewer: 2.5.0
- files_rightclick: 1.3.0
- files_sharing: 1.16.2
- files_trashbin: 1.14.0
- files_versions: 1.17.0
- files_videoplayer: 1.13.0
- logreader: 2.9.0
- lookup_server_connector: 1.12.0
- nextcloud_announcements: 1.13.0
- notifications: 2.12.0
- oauth2: 1.12.0
- password_policy: 1.14.0
- photos: 1.6.0
- privacy: 1.8.0
- provisioning_api: 1.14.0
- recommendations: 1.3.0
- serverinfo: 1.14.0
- settings: 1.6.0
- sharebymail: 1.14.0
- support: 1.7.0
- systemtags: 1.14.0
- text: 3.5.1
- theming: 1.15.0
- twofactor_admin: 3.2.0
- twofactor_backupcodes: 1.13.0
- twofactor_totp: 6.3.0
- updatenotification: 1.14.0
- user_ldap: 1.14.1
- viewer: 1.8.0
- weather_status: 1.4.0
- workflowengine: 2.6.0
Disabled:
- admin_audit
- dashboard: 7.4.0
- encryption
- firstrunwizard: 2.13.0
- survey_client: 1.12.0
- user_status: 1.4.0
Nextcloud Signing status
Technical information
=====================
The following list covers which files have failed the integrity check. Please read
the previous linked documentation to learn more about the errors and how to fix
them.
Results
=======
- core
- EXTRA_FILE
- nextcloud.log
Raw output
==========
Array
(
[core] => Array
(
[EXTRA_FILE] => Array
(
[nextcloud.log] => Array
(
[expected] =>
[current] => 9a7ea82181a58e9a83e24912466c48e82bad1900ba4edbdff77a41d3f5dd255d3792f1feee62829ec256d699d0e38458fa9ead49dce40aac42b81865a4158ced
)
)
)
)
Nextcloud Logs
{"reqId":"Ag6ZyxzYsfYNERG6SJtD","level":0,"time":"June 13, 2022 11:11:29","remoteAddr":"217.7.187.170","user":"--","app":"scss_cacher","method":"GET","url":"/index.php/s/6tBWnQifKiAfibx","message":"SCSSCacher::process ordinary check follows","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36","version":"24.0.1.1"}
{"reqId":"bp4hkaIhoi3NxfGCspIc","level":1,"time":"June 13, 2022 11:11:29","remoteAddr":"217.7.187.170","user":"--","app":"no app in context","method":"PROPFIND","url":"/public.php/webdav/","message":"IP address throttled because it reached the attempts limit in the last 30 minutes [action: public_webdav_auth, delay: 800, ip: 217.7.187.170]","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36","version":"24.0.1.1"}
{"reqId":"bp4hkaIhoi3NxfGCspIc","level":0,"time":"June 13, 2022 11:11:30","remoteAddr":"217.7.187.170","user":"--","app":"webdav","method":"PROPFIND","url":"/public.php/webdav/","message":"","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36","version":"24.0.1.1","exception":{"Exception":"Sabre\\DAV\\Exception\\NotFound","Message":"","Code":0,"Trace":[{"file":"/var/www/html/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"beforeMethod","class":"OCA\\DAV\\Files\\Sharing\\PublicLinkCheckPlugin","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":456,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/html/nextcloud/apps/dav/appinfo/v1/publicwebdav.php","line":113,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/html/nextcloud/public.php","line":80,"args":["/var/www/html/nextcloud/apps/dav/appinfo/v1/publicwebdav.php"],"function":"require_once"}],"File":"/var/www/html/nextcloud/apps/dav/lib/Files/Sharing/PublicLinkCheckPlugin.php","Line":62,"CustomMessage":"--"}}
{"reqId":"4O2yAEjGKlSzj0ufuSUN","level":0,"time":"June 13, 2022 11:11:32","remoteAddr":"217.7.187.170","user":"--","app":"scss_cacher","method":"GET","url":"/index.php/s/6tBWnQifKiAfibx","message":"SCSSCacher::process ordinary check follows","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36","version":"24.0.1.1"}
{"reqId":"4O2yAEjGKlSzj0ufuSUN","level":0,"time":"June 13, 2022 11:11:32","remoteAddr":"217.7.187.170","user":"--","app":"scss_cacher","method":"GET","url":"/index.php/s/6tBWnQifKiAfibx","message":"SCSSCacher::process ordinary check follows","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36","version":"24.0.1.1"}
{"reqId":"4O2yAEjGKlSzj0ufuSUN","level":0,"time":"June 13, 2022 11:11:32","remoteAddr":"217.7.187.170","user":"--","app":"scss_cacher","method":"GET","url":"/index.php/s/6tBWnQifKiAfibx","message":"SCSSCacher::process ordinary check follows","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36","version":"24.0.1.1"}
{"reqId":"4O2yAEjGKlSzj0ufuSUN","level":0,"time":"June 13, 2022 11:11:32","remoteAddr":"217.7.187.170","user":"--","app":"scss_cacher","method":"GET","url":"/index.php/s/6tBWnQifKiAfibx","message":"SCSSCacher::process ordinary check follows","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36","version":"24.0.1.1"}
{"reqId":"4O2yAEjGKlSzj0ufuSUN","level":0,"time":"June 13, 2022 11:11:32","remoteAddr":"217.7.187.170","user":"--","app":"scss_cacher","method":"GET","url":"/index.php/s/6tBWnQifKiAfibx","message":"SCSSCacher::process ordinary check follows","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36","version":"24.0.1.1"}
{"reqId":"LeAYpaDGv4kO3t9mzuHd","level":1,"time":"June 13, 2022 11:11:33","remoteAddr":"217.7.187.170","user":"--","app":"no app in context","method":"PROPFIND","url":"/public.php/webdav/","message":"IP address throttled because it reached the attempts limit in the last 30 minutes [action: public_webdav_auth, delay: 800, ip: 217.7.187.170]","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36","version":"24.0.1.1"}
{"reqId":"LeAYpaDGv4kO3t9mzuHd","level":0,"time":"June 13, 2022 11:11:34","remoteAddr":"217.7.187.170","user":"--","app":"webdav","method":"PROPFIND","url":"/public.php/webdav/","message":"","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36","version":"24.0.1.1","exception":{"Exception":"Sabre\\DAV\\Exception\\NotFound","Message":"","Code":0,"Trace":[{"file":"/var/www/html/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"beforeMethod","class":"OCA\\DAV\\Files\\Sharing\\PublicLinkCheckPlugin","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":456,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/html/nextcloud/apps/dav/appinfo/v1/publicwebdav.php","line":113,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/html/nextcloud/public.php","line":80,"args":["/var/www/html/nextcloud/apps/dav/appinfo/v1/publicwebdav.php"],"function":"require_once"}],"File":"/var/www/html/nextcloud/apps/dav/lib/Files/Sharing/PublicLinkCheckPlugin.php","Line":62,"CustomMessage":"--"}}
{"reqId":"X7YmPwKTIu58Mxjh9Whr","level":0,"time":"June 13, 2022 11:11:48","remoteAddr":"217.7.187.170","user":"--","app":"scss_cacher","method":"GET","url":"/index.php/s/6tBWnQifKiAfibx","message":"SCSSCacher::process ordinary check follows","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36","version":"24.0.1.1"}
{"reqId":"X7YmPwKTIu58Mxjh9Whr","level":0,"time":"June 13, 2022 11:11:48","remoteAddr":"217.7.187.170","user":"--","app":"scss_cacher","method":"GET","url":"/index.php/s/6tBWnQifKiAfibx","message":"SCSSCacher::process ordinary check follows","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36","version":"24.0.1.1"}
{"reqId":"X7YmPwKTIu58Mxjh9Whr","level":0,"time":"June 13, 2022 11:11:48","remoteAddr":"217.7.187.170","user":"--","app":"scss_cacher","method":"GET","url":"/index.php/s/6tBWnQifKiAfibx","message":"SCSSCacher::process ordinary check follows","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36","version":"24.0.1.1"}
{"reqId":"X7YmPwKTIu58Mxjh9Whr","level":0,"time":"June 13, 2022 11:11:48","remoteAddr":"217.7.187.170","user":"--","app":"scss_cacher","method":"GET","url":"/index.php/s/6tBWnQifKiAfibx","message":"SCSSCacher::process ordinary check follows","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36","version":"24.0.1.1"}
{"reqId":"X7YmPwKTIu58Mxjh9Whr","level":0,"time":"June 13, 2022 11:11:48","remoteAddr":"217.7.187.170","user":"--","app":"scss_cacher","method":"GET","url":"/index.php/s/6tBWnQifKiAfibx","message":"SCSSCacher::process ordinary check follows","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36","version":"24.0.1.1"}
{"reqId":"Q5v9Yo5f3Cjn0CZlvvNn","level":1,"time":"June 13, 2022 11:11:49","remoteAddr":"217.7.187.170","user":"--","app":"no app in context","method":"PROPFIND","url":"/public.php/webdav/","message":"IP address throttled because it reached the attempts limit in the last 30 minutes [action: public_webdav_auth, delay: 800, ip: 217.7.187.170]","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36","version":"24.0.1.1"}
{"reqId":"Q5v9Yo5f3Cjn0CZlvvNn","level":0,"time":"June 13, 2022 11:11:50","remoteAddr":"217.7.187.170","user":"--","app":"webdav","method":"PROPFIND","url":"/public.php/webdav/","message":"","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36","version":"24.0.1.1","exception":{"Exception":"Sabre\\DAV\\Exception\\NotFound","Message":"","Code":0,"Trace":[{"file":"/var/www/html/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"beforeMethod","class":"OCA\\DAV\\Files\\Sharing\\PublicLinkCheckPlugin","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":456,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/html/nextcloud/apps/dav/appinfo/v1/publicwebdav.php","line":113,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/html/nextcloud/public.php","line":80,"args":["/var/www/html/nextcloud/apps/dav/appinfo/v1/publicwebdav.php"],"function":"require_once"}],"File":"/var/www/html/nextcloud/apps/dav/lib/Files/Sharing/PublicLinkCheckPlugin.php","Line":62,"CustomMessage":"--"}}
Additional info
No response
I'm also experiencing the same bug.
Password protected link also not working.
Also public link can not be accessed with webdav client ( using curl -X PROPFIND -H "Depth: 1" -u SHARELINK_TOKEN:<OPTIONAL_PASSWORD> https://nextcloud.domain/public.php/webdav)
Done some investigation by myself and found this if statement.
https://github.com/nextcloud/server/blob/c84a68ec1157f6210f821fa1a3d0d0e937fc55ed/apps/dav/lib/Files/Sharing/PublicLinkCheckPlugin.php#L61
Webdav returns 404 because somehow fileInfo have only READ or READ WRITE permissions, when publicly shared from smb storage.
This leads to isShareable == false and ui never updated.
Okay, i found a problem. I installed nextcloud 23.0.5 and found, that I can not publicly share folder from samba storage by default. And I found this checkbox.
"Allow public sharing"

I think, that a bug in nextcloud 24 actually sounds like: There is allowed to share smb folder in UI even when that checkbox set to false.
Hi, please update to 25.0.7 or better 26.0.2 and report back if it fixes the issue. Thank you!
My goal is to add a label like e.g. 26-feedback to this ticket of an up-to-date major Nextcloud version where the bug could be reproduced. However this is not going to work without your help. So thanks for all your effort!
If you don't manage to reproduce the issue in time and the issue gets closed but you can reproduce the issue afterwards, feel free to create a new bug report with up-to-date information by following this link: https://github.com/nextcloud/server/issues/new?assignees=&labels=bug%2C0.+Needs+triage&template=BUG_REPORT.yml&title=%5BBug%5D%3A+
@jloggia1 Your logs seem to indicate throttling is being triggered:
https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/bruteforce_configuration.html
@helldoc That's (likely) a distinct issue. But glad you got it figured out. :) I think part of the issue with preventing people from creating shares if they haven't enabled that option on their external mount is that it's a toggle. So it could be toggled off at any time - even with outstanding shares being out there.