Please use the ๐ reaction to show that you are affected by the same issue.
Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
Subscribe to receive notifications on status change and new comments.
Steps to reproduce
Create a group folder /groupfolder (can have ACL or not)
Create a sub folder /groupfolder/sub
Create a file /groupfolder/sub/to-be-deleted in the sub folder
Delete the file /groupfolder/sub/to-be-deleted
Delete the folder /groupfolder/sub
Restore the file to-be-deleted from the trashbin
Expected 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
Create a file /groupfolder/already/existing/folders/sub/to-be-deleted (assuming that the parent folders exists)
Delete the file /groupfolder/already/existing/folders/sub/to-be-deleted
Delete the folder /groupfolder/already/existing/folders/sub
Restore the file 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
Admin creates a groupfolder with subfolders /groupfolder/already/existing/folders and activates ACL on the groupfolder
Admin denies write access to the root folder to user A, but gives user A read&write access to the subfolder /groupfolder/already/existing/folders
User A create a folder /groupfolder/already/existing/folders/sub
User A creates a file /groupfolder/already/existing/folders/sub/to-be-deleted
User A deletes the file /groupfolder/already/existing/folders/sub/to-be-deleted
User A deletes the folder /groupfolder/already/existing/folders/sub
User A restores the file to-be-deleted from the trashbin
=> The file is still restored in the root folder, i.e. as /groupfolder/to-be-deleteddespite the fact that user A does not have write access to the root groupfolder
Server 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
```
Insert your webserver log here
```
Nextcloud log (data/nextcloud.log)
Nextcloud log
```
```
Browser log
Browser log
```
Insert your browser log here, this could for example include:
a) The javascript console log
b) The network log
c) ...
```
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
``` Insert your webserver log here ```Nextcloud log (data/nextcloud.log)
Nextcloud log
```Browser log
Browser log
``` Insert your browser log here, this could for example include: a) The javascript console log b) The network log c) ... ```