Restoring a file from the trashbin that was deleted from a previously deleted subfolder causes unexpected behaviour #2041
Labels
1. to develop
Issues that are ready for development
bug
feature: trashbin
Items related to the trashbin feature
How to use GitHub
Steps to reproduce
/groupfolder
(can have ACL or not)/groupfolder/sub
/groupfolder/sub/to-be-deleted
in the sub folder/groupfolder/sub/to-be-deleted
/groupfolder/sub
to-be-deleted
from the trashbinExpected behaviour
Restoration either fails because the folder to which the restoration should happen no longer exists.
Or restoration re-creates the deleted folder and puts the deleted file in it (but only if the restoring user has the necessary permissions.)
Actual behaviour
The file
to-be-deleted
is restored in the root groupfolder, i.e. as/groupfolder/to-be-deleted
Extended test 1
/groupfolder/already/existing/folders/sub/to-be-deleted
(assuming that the parent folders exists)/groupfolder/already/existing/folders/sub/to-be-deleted
/groupfolder/already/existing/folders/sub
to-be-deleted
from the trashbin=> The file is still restored in the root folder, i.e. as
/groupfolder/to-be-deleted
Extended test 2
/groupfolder/already/existing/folders
and activates ACL on the groupfolder/groupfolder/already/existing/folders
/groupfolder/already/existing/folders/sub
/groupfolder/already/existing/folders/sub/to-be-deleted
/groupfolder/already/existing/folders/sub/to-be-deleted
/groupfolder/already/existing/folders/sub
to-be-deleted
from the trashbin=> The file is still restored in the root folder, i.e. as
/groupfolder/to-be-deleted
despite the fact that user A does not have write access to the root groupfolderServer configuration
Operating system: Official nextcloud (FPM) container in OKD/Openshift
Web server: Nginx reverse proxy as "side-container" behind OKD/Openshift-Router
Database: Postgresql
PHP version: PHP 8.0.20
Nextcloud version: NC 24.0.2
Group folders version: 12.0.1
Updated from an older Nextcloud/ownCloud or fresh install: upgraded for several versions now
Client configuration
Browser: Firefox (does not matter)
Operating system: Ubuntu (does not matter)
Logs
Web server error log
Web server error log
Nextcloud log (data/nextcloud.log)
Nextcloud log
Browser log
Browser log
The text was updated successfully, but these errors were encountered: