Deleting files in groupfolder using occ files:delete -fn throws an unhandled exception #3413
Labels
0. Needs triage
Issues that need to be triaged
bug
feature: trashbin
Items related to the trashbin feature
How to use GitHub
Steps to reproduce
Expected behaviour
'somedir' is silently removed.
Actual behaviour
When 'somedir' exists and the 'occ files:delete -fn "user/files/gfolder/somedir"' is run in server console for the first time, it will throw the exception (with occ return code 1):
The 'somedir' is deleted on filesystem, but still present in nextcloud web interface, leading to inconsistent state.
When the command is run for the second time, it does not throw the exception, and removes 'somedir' from web interface (return code 0).
Deleting using 'occ files:delete -fn "whatever"' in regular folder (not a group folder) works as expected.
Server configuration
Operating system:
Rocky linux 9.4
Web server:
Apache/2.4.57
Database:
mysql 10.11.6
PHP version:
8.2.25
Nextcloud version:
30.0.2
Group folders version:
18.0.4
Updated from an older Nextcloud/ownCloud or fresh install:
Updated
Where did you install Nextcloud from:
nextcloud.com archive
Are you using external storage, if yes which one: local/s3/smb/sftp/...
no
Are you using encryption: yes/no
no
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/Saml/...
no
Client configuration
Browser:
Firefox 132.0.1
Operating system:
Windows 10 x64
Logs
Web server error log
No errors in ssl_error_log and error_log
Web server error log
Nextcloud log (data/nextcloud.log)
No error in nextcloud.log ('loglevel' => 1)
Nextcloud log
The text was updated successfully, but these errors were encountered: