You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Direct links to files in a shared folder have changed format, and the old one (/s/sharelink/download?path=%2Ffolder&files=file) no longer works.
"GET /s/sharelink/download?path=%2Ffolder&files=file HTTP/1.1" 500 2950
{
"level": 3,
"user": false,
"app": "index",
"method": "GET",
"url": "/s/sharelink/download?path=%2Ffolder&files=file",
"message": "OC\\Files\\Utils\\PathHelper::normalizePath(): Argument #1 ($path) must be of type string, null given, called in /usr/share/webapps/nextcloud/lib/private/Files/Node/Node.php on line 321 in file '/usr/share/webapps/nextcloud/lib/private/Files/Utils/PathHelper.php' line 36",
"userAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36",
"version": "31.0.2.1",
"exception":
{
"Exception": "Exception",
"Message": "OC\\Files\\Utils\\PathHelper::normalizePath(): Argument #1 ($path) must be of type string, null given, called in /usr/share/webapps/nextcloud/lib/private/Files/Node/Node.php on line 321 in file '/usr/share/webapps/nextcloud/lib/private/Files/Utils/PathHelper.php' line 36",
"Code": 0,
"Trace":
[
{
"file": "/usr/share/webapps/nextcloud/lib/private/AppFramework/App.php",
"line": 161,
"function": "dispatch",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->"
},
{
"file": "/usr/share/webapps/nextcloud/lib/private/Route/Router.php",
"line": 307,
"function": "main",
"class": "OC\\AppFramework\\App",
"type": "::"
},
{
"file": "/usr/share/webapps/nextcloud/lib/base.php",
"line": 1025,
"function": "match",
"class": "OC\\Route\\Router",
"type": "->"
},
{
"file": "/usr/share/webapps/nextcloud/index.php",
"line": 24,
"function": "handleRequest",
"class": "OC",
"type": "::"
}
],
"File": "/usr/share/webapps/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
"Line": 146,
"Previous":
{
"Exception": "TypeError",
"Message": "OC\\Files\\Utils\\PathHelper::normalizePath(): Argument #1 ($path) must be of type string, null given, called in /usr/share/webapps/nextcloud/lib/private/Files/Node/Node.php on line 321",
"Code": 0,
"Trace":
[
{
"file": "/usr/share/webapps/nextcloud/lib/private/Files/Node/Node.php",
"line": 321,
"function": "normalizePath",
"class": "OC\\Files\\Utils\\PathHelper",
"type": "::"
},
{
"file": "/usr/share/webapps/nextcloud/lib/private/Files/Node/Folder.php",
"line": 49,
"function": "normalizePath",
"class": "OC\\Files\\Node\\Node",
"type": "->"
},
{
"file": "/usr/share/webapps/nextcloud/lib/private/Files/Node/Folder.php",
"line": 107,
"function": "getFullPath",
"class": "OC\\Files\\Node\\Folder",
"type": "->"
},
{
"file": "/usr/share/webapps/nextcloud/apps/files_sharing/lib/Controller/ShareController.php",
"line": 403,
"function": "get",
"class": "OC\\Files\\Node\\Folder",
"type": "->"
},
{
"file": "/usr/share/webapps/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
"line": 200,
"function": "downloadShare",
"class": "OCA\\Files_Sharing\\Controller\\ShareController",
"type": "->"
},
{
"file": "/usr/share/webapps/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
"line": 114,
"function": "executeController",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->"
},
{
"file": "/usr/share/webapps/nextcloud/lib/private/AppFramework/App.php",
"line": 161,
"function": "dispatch",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->"
},
{
"file": "/usr/share/webapps/nextcloud/lib/private/Route/Router.php",
"line": 307,
"function": "main",
"class": "OC\\AppFramework\\App",
"type": "::"
},
{
"file": "/usr/share/webapps/nextcloud/lib/base.php",
"line": 1025,
"function": "match",
"class": "OC\\Route\\Router",
"type": "->"
},
{
"file": "/usr/share/webapps/nextcloud/index.php",
"line": 24,
"function": "handleRequest",
"class": "OC",
"type": "::"
}
],
"File": "/usr/share/webapps/nextcloud/lib/private/Files/Utils/PathHelper.php",
"Line": 36
},
"message": "OC\\Files\\Utils\\PathHelper::normalizePath(): Argument #1 ($path) must be of type string, null given, called in /usr/share/webapps/nextcloud/lib/private/Files/Node/Node.php on line 321 in file '/usr/share/webapps/nextcloud/lib/private/Files/Utils/PathHelper.php' line 36",
"exception":
{},
"CustomMessage": "OC\\Files\\Utils\\PathHelper::normalizePath(): Argument #1 ($path) must be of type string, null given, called in /usr/share/webapps/nextcloud/lib/private/Files/Node/Node.php on line 321 in file '/usr/share/webapps/nextcloud/lib/private/Files/Utils/PathHelper.php' line 36"
}
}
That is fine, but the new one (/public.php/dav/files/sharelink/folder/file), although succeeding, generates an error in the log and a duplicate download notice in the activity log.
Bug description
Direct links to files in a shared folder have changed format, and the old one (
/s/sharelink/download?path=%2Ffolder&files=file
) no longer works.That is fine, but the new one (
/public.php/dav/files/sharelink/folder/file
), although succeeding, generates an error in the log and a duplicate download notice in the activity log.That is fine too, but both it and the whole-share download (
/s/sharelink/download
) are now not working if accessed via a link from another website.Steps to reproduce
Create a shared folder, visit it and then try direct downloading via a link as described above.
Expected behavior
Error-free downloads.
Nextcloud Server version
31
Operating system
Other
PHP engine version
PHP 8.2
Web server
Apache (supported)
Database engine version
PostgreSQL
Is this bug present after an update or on a fresh install?
Updated from a MINOR version (ex. 32.0.1 to 32.0.2)
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
No response
The text was updated successfully, but these errors were encountered: