Open JanBoehme opened 6 months ago
The behavior seems to be somewhat dependant on the folder containing the file. In the example here, further up the directory structure it's working.
As I am working in the same cloud, I can confirm the issue. Anyone can reproduce the issue? It is sadly limiting our ability to use Activities quite substantially.
Hello, I have a related issue, with almost the same stack trace, but it's on a PUT request and not a DELETE. It looks like the file is still uploaded, but there is plenty of ugly errors shown in the front-end. Maybe my logs can help to identify something?
{
"reqId": "cZ14Faxe8m6vU2TtWMx8",
"level": 3,
"time": "2024-06-28T14:45:37+02:00",
"remoteAddr": "x.x.x.x",
"user": "user4",
"app": "webdav",
"method": "PUT",
"url": "/remote.php/dav/files/user4/A%20GROUPFOLDER/1-%20Subfolder/a-%20subfolder2/file.xlsx",
"message": "OC\\Files\\Utils\\PathHelper::normalizePath(): Argument #1 ($path) must be of type string, null given, called in /var/www/html/nextcloud/nextcloud.example.com/lib/private/Files/Node/Node.php on line 344",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 Edg/126.0.0.0",
"version": "28.0.7.4",
"exception": {
"Exception": "TypeError",
"Message": "OC\\Files\\Utils\\PathHelper::normalizePath(): Argument #1 ($path) must be of type string, null given, called in /var/www/html/nextcloud/nextcloud.example.com/lib/private/Files/Node/Node.php on line 344",
"Code": 0,
"Trace": [
{
"file": "/var/www/html/nextcloud/nextcloud.example.com/lib/private/Files/Node/Node.php",
"line": 344,
"function": "normalizePath",
"class": "OC\\Files\\Utils\\PathHelper",
"type": "::",
"args": [
"*** sensitive parameters replaced ***"
]
},
{
"file": "/var/www/html/nextcloud/nextcloud.example.com/lib/private/Files/Node/Folder.php",
"line": 70,
"function": "normalizePath",
"class": "OC\\Files\\Node\\Node",
"type": "->",
"args": [
"*** sensitive parameters replaced ***"
]
},
{
"function": "getFullPath",
"class": "OC\\Files\\Node\\Folder",
"type": "->",
"args": [
"*** sensitive parameters replaced ***"
]
},
{
"file": "/var/www/html/nextcloud/nextcloud.example.com/lib/private/Files/Node/LazyFolder.php",
"line": 84,
"function": "call_user_func_array",
"args": [
[
[
"OC\\Files\\Node\\Root"
],
"getFullPath"
],
[
"*** sensitive parameters replaced ***"
]
]
},
{
"file": "/var/www/html/nextcloud/nextcloud.example.com/lib/private/Files/Node/LazyFolder.php",
"line": 428,
"function": "__call",
"class": "OC\\Files\\Node\\LazyFolder",
"type": "->",
"args": [
"getFullPath",
[
"*** sensitive parameters replaced ***"
]
]
},
{
"file": "/var/www/html/nextcloud/nextcloud.example.com/lib/private/Files/Node/LazyFolder.php",
"line": 161,
"function": "getFullPath",
"class": "OC\\Files\\Node\\LazyFolder",
"type": "->",
"args": [
"*** sensitive parameters replaced ***"
]
},
{
"file": "/var/www/html/nextcloud/nextcloud.example.com/apps/activity/lib/FilesHooks.php",
"line": 1333,
"function": "get",
"class": "OC\\Files\\Node\\LazyFolder",
"type": "->",
"args": [
"*** sensitive parameters replaced ***"
]
},
{
"file": "/var/www/html/nextcloud/nextcloud.example.com/apps/activity/lib/FilesHooks.php",
"line": 1203,
"function": "getUnrelatedUsers",
"class": "OCA\\Activity\\FilesHooks",
"type": "->",
"args": [
1098,
[
[
"user2",
"OCA\\GroupFolders\\Mount\\MountProvider",
"/user2/files/A GROUPFOLDER/1- Subfolder/a- subfolder2/file.xlsx",
"/A GROUPFOLDER/1- Subfolder/a- subfolder2/file.xlsx",
2
],
[
"user3",
"OCA\\GroupFolders\\Mount\\MountProvider",
"/user3/files/A GROUPFOLDER/1- Subfolder/a- subfolder2/file.xlsx",
"/A GROUPFOLDER/1- Subfolder/a- subfolder2/file.xlsx",
2
],
[
"user4",
"OCA\\GroupFolders\\Mount\\MountProvider",
"/user4/files/A GROUPFOLDER/1- Subfolder/a- subfolder2/file.xlsx",
"/A GROUPFOLDER/1- Subfolder/a- subfolder2/file.xlsx",
2
],
[
"user5",
"OCA\\GroupFolders\\Mount\\MountProvider",
"/user5/files/A GROUPFOLDER/1- Subfolder/a- subfolder2/file.xlsx",
"/A GROUPFOLDER/1- Subfolder/a- subfolder2/file.xlsx",
2
]
]
]
},
{
"file": "/var/www/html/nextcloud/nextcloud.example.com/apps/activity/lib/FilesHooks.php",
"line": 176,
"function": "getAffectedUsersFromCachedMounts",
"class": "OCA\\Activity\\FilesHooks",
"type": "->",
"args": [
1098
]
},
{
"file": "/var/www/html/nextcloud/nextcloud.example.com/apps/activity/lib/FilesHooks.php",
"line": 96,
"function": "addNotificationsForFileAction",
"class": "OCA\\Activity\\FilesHooks",
"type": "->",
"args": [
"/A GROUPFOLDER/1- Subfolder/a- subfolder2/file.xlsx",
"file_created",
"created_self",
"created_by"
]
},
{
"file": "/var/www/html/nextcloud/nextcloud.example.com/apps/activity/lib/FilesHooksStatic.php",
"line": 43,
"function": "fileCreate",
"class": "OCA\\Activity\\FilesHooks",
"type": "->",
"args": [
"/A GROUPFOLDER/1- Subfolder/a- subfolder2/file.xlsx"
]
},
{
"file": "/var/www/html/nextcloud/nextcloud.example.com/lib/private/legacy/OC_Hook.php",
"line": 105,
"function": "fileCreate",
"class": "OCA\\Activity\\FilesHooksStatic",
"type": "::",
"args": [
[
"/A GROUPFOLDER/1- Subfolder/a- subfolder2/file.xlsx"
]
]
},
{
"file": "/var/www/html/nextcloud/nextcloud.example.com/apps/dav/lib/Connector/Sabre/File.php",
"line": 471,
"function": "emit",
"class": "OC_Hook",
"type": "::",
"args": [
"OC_Filesystem",
"post_create",
[
"/A GROUPFOLDER/1- Subfolder/a- subfolder2/file.xlsx"
]
]
},
{
"file": "/var/www/html/nextcloud/nextcloud.example.com/apps/dav/lib/Connector/Sabre/File.php",
"line": 404,
"function": "emitPostHooks",
"class": "OCA\\DAV\\Connector\\Sabre\\File",
"type": "->",
"args": [
false
]
},
{
"file": "/var/www/html/nextcloud/nextcloud.example.com/apps/dav/lib/Connector/Sabre/Directory.php",
"line": 148,
"function": "put",
"class": "OCA\\DAV\\Connector\\Sabre\\File",
"type": "->",
"args": [
"*** sensitive parameters replaced ***"
]
},
{
"file": "/var/www/html/nextcloud/nextcloud.example.com/3rdparty/sabre/dav/lib/DAV/Server.php",
"line": 1098,
"function": "createFile",
"class": "OCA\\DAV\\Connector\\Sabre\\Directory",
"type": "->",
"args": [
"*** sensitive parameters replaced ***"
]
},
{
"file": "/var/www/html/nextcloud/nextcloud.example.com/3rdparty/sabre/dav/lib/DAV/CorePlugin.php",
"line": 504,
"function": "createFile",
"class": "Sabre\\DAV\\Server",
"type": "->",
"args": [
"*** sensitive parameters replaced ***"
]
},
{
"file": "/var/www/html/nextcloud/nextcloud.example.com/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",
"line": 89,
"function": "httpPut",
"class": "Sabre\\DAV\\CorePlugin",
"type": "->",
"args": [
[
"Sabre\\HTTP\\Request"
],
[
"Sabre\\HTTP\\Response"
]
]
},
{
"file": "/var/www/html/nextcloud/nextcloud.example.com/3rdparty/sabre/dav/lib/DAV/Server.php",
"line": 472,
"function": "emit",
"class": "Sabre\\DAV\\Server",
"type": "->",
"args": [
"method:PUT",
[
[
"Sabre\\HTTP\\Request"
],
[
"Sabre\\HTTP\\Response"
]
]
]
},
{
"file": "/var/www/html/nextcloud/nextcloud.example.com/3rdparty/sabre/dav/lib/DAV/Server.php",
"line": 253,
"function": "invokeMethod",
"class": "Sabre\\DAV\\Server",
"type": "->",
"args": [
[
"Sabre\\HTTP\\Request"
],
[
"Sabre\\HTTP\\Response"
]
]
},
{
"file": "/var/www/html/nextcloud/nextcloud.example.com/3rdparty/sabre/dav/lib/DAV/Server.php",
"line": 321,
"function": "start",
"class": "Sabre\\DAV\\Server",
"type": "->",
"args": []
},
{
"file": "/var/www/html/nextcloud/nextcloud.example.com/apps/dav/lib/Server.php",
"line": 378,
"function": "exec",
"class": "Sabre\\DAV\\Server",
"type": "->",
"args": []
},
{
"file": "/var/www/html/nextcloud/nextcloud.example.com/apps/dav/appinfo/v2/remote.php",
"line": 35,
"function": "exec",
"class": "OCA\\DAV\\Server",
"type": "->",
"args": []
},
{
"file": "/var/www/html/nextcloud/nextcloud.example.com/remote.php",
"line": 172,
"args": [
"/var/www/html/nextcloud/nextcloud.example.com/apps/dav/appinfo/v2/remote.php"
],
"function": "require_once"
}
],
"File": "/var/www/html/nextcloud/nextcloud.example.com/lib/private/Files/Utils/PathHelper.php",
"Line": 52,
"message": "OC\\Files\\Utils\\PathHelper::normalizePath(): Argument #1 ($path) must be of type string, null given, called in /var/www/html/nextcloud/nextcloud.example.com/lib/private/Files/Node/Node.php on line 344",
"exception": {},
"CustomMessage": "OC\\Files\\Utils\\PathHelper::normalizePath(): Argument #1 ($path) must be of type string, null given, called in /var/www/html/nextcloud/nextcloud.example.com/lib/private/Files/Node/Node.php on line 344"
}
}
Regards,
Steps to reproduce
Expected behaviour
I'd expect the file to be deletable when the activity app is active.
Actual behaviour
The file can't be moved or deleted.
Server configuration
Operating system: Linux / Ubuntu 22.04.3
Web server: nginx/1.24.0
Database: MariaDB 10.11.6
PHP version: 8.2.15
Nextcloud version: (see Nextcloud admin page) 28.0.3
Where did you install Nextcloud from: Tarball
Signing status:
No errors have been found.
List of activated apps:
Enabled:
Nextcloud configuration:
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/... no
Client configuration
Browser: Firefox 121.0.1 (64-Bit)
Operating system: MacOS 13.6.3
Logs
Nextcloud log (data/nextcloud.log)
Browser log
Request:
Response:
Console: