Why a shared folder cannot be moved from/to external storage #11546
Labels
0. Needs triage
Pending check for reproducibility or if it fits our roadmap
bug
feature: external storage
I already posted this question in the forums, but I thinks it's more a dev thing, so I'll try it here.
Let's assume that there are two users: Admin and Bob.
Both have external storage mounted (mounted external storage as admin):
Steps to reproduce
Expected behaviour
I would expect that the shared folder can be moved, no matter if it's on "internal" or external storage.
Actual behaviour
An error is shown that the folder cannot be moved.
Are you using external storage, if yes which one: SMB/CIFS (but it shouldn't make any difference when using other types of external storage)
Are you using encryption: no
Are you using an external user-backend, if yes which one: No
Logs
Nextcloud log (data/nextcloud.log)
Log entries are only written if the log level is set to a value < 2. These entries are written with log level 0 (debug):
Nextcloud log
The error message says it all:
I took a look at the code producing this message. It’s in /lib/private/Files/View.php:
When I get this right, when moving a file or folder, it is checked if i’s on local or external storage. When on external storage, the operation gets cancelled.
When removing the if-block executing this check, I am able to move shared folders on external storage. This seems to work without any issues. The only problem is the integrity warning I get with these changes.
So I don't know if this is a real issue, but I'm asking:
Any ideas would be appreciated.
The text was updated successfully, but these errors were encountered: