[Bug]: Public share link not working when OutgoingServer2serverShare is disabled #42313
Closed
5 of 8 tasks
Labels
0. Needs triage
Pending check for reproducibility or if it fits our roadmap
28-feedback
bug
feature: sharing
regression
Bug description
Opening a public share link leads to a reload loop, because the
/public.php/webdav/
endpoint returns a status401
.The issue occurs with a link created with an older NC version and also with a link created in the NC 28.
Bug only occurs when OutgoingServer2serverShare is disabled.
I've debugged this and it seems the ajax check in apps/dav/appinfo/v1/publicwebdav.php isn't working correctly, leading to a NotAuthenticated exception.
The headers sent by the browser to
/public.php/webdav/
containX-Requested-With: XMLHttpRequest, XMLHttpRequest
, but the ajax check in publicwebdav.php only checks$_SERVER['HTTP_X_REQUESTED_WITH'] === 'XMLHttpRequest'
.Steps to reproduce
-> Continuous reload of the page in the browser
Expected behavior
The shared folder should be shown after opening the link.
Installation method
Community Manual installation with Archive
Nextcloud Server version
28
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.2
Web server
Apache (supported)
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Upgraded to a MAJOR version (ex. 22 to 23)
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
No response
Additional info
No response
The text was updated successfully, but these errors were encountered: