Open dtygel opened 7 years ago
Please upgrade to 12.0.3. It should be fixed there.
We pulled 12.0.3, tried again and didn't work.
There is another error that happens when an user tries to move a file from a shared folder A to another shared folder B. I've tried to move this file and received an error message. I've made the same operation in two steps: moved the file from the shared folder A to my home folder: OK. Then moved the same file from my home folder to a shared folder B: OK too.
Tested this last error reported by me in the last comment, in nextcloud 13, the error did not happen.
However, the error in this issue, reported by @dtygel , happens in nextcloud 13 (master)
Aaah I missunderstood the problem.
Moving a share into a share is not supported.
OK @rullzer . The question is: should we work on this problem? We want to be able to move a file that is a share to another folder that is a share. We thought in a solution: unsharing the file and moving it inside the folder. Specially possible if the owner of the file and of the folder are the same person, and both file and folder are shared with same sharing options (edit allowed, shared to same users/groups/circles). Will this be accepted into nextcloud core?
The owner of files can do what they want with files.
Like if you have
Root
|--Foo
|--Bar
|-- text.txt
If the owner wants to move Bar into foo.
Root
|--Foo
|--Bar
|-- text.txt
And the owner can share Foo
, Bar
and text.txt
all at the same time.
The reason we don't allow moving shares into shares is twofold:
Hi @rullzer . That is a good explanation.
Besides that, I would like to report a bug, (maybe in other issue?) because when we move a mount point to inside another, it fails silently.
It should throw an error.
The error in lib/private/Files/View.php:1729 does not happen because of a storage wrapper. In my case the Files_Trashbin/Storage (which is a wrapper) is a instance of OCP\Files\IHomeStorage . This error should happen when I move one SharedStorage to inside another.
For the user to whom the file/folder is being shared, the operation seems to have been done perfectly, however when s/he reloads the page, the moved file is in the same place.
Steps to reproduce: User A: share a file F1 with user B User A: share a folder F2 with user B User B: using the web interface (Files), move F1 into F2. No error message reported, seems to be a success. User B: reload the page, and F1 is outside F2, s/he realizes that the move didn't happen.
Tested in nextcloud 12 and 13 (master).
This problem persists in 15, I have fedeated share from external NC, and I can move it only to folders I am not sharing at all.
can not move files or directory from NC 20.0.7 to federated NC 20.0.4 Message "Could not move .... to ...." or Message "Could not copy .... to ...." both Servers are hosted by the same provider.
can not move files or directory from NC 20.0.7 to federated NC 20.0.4 Message "Could not move .... to ...." or Message "Could not copy .... to ...." both Servers are hosted by the same provider.
Neverthless !!! the files and directory have been moved to the other Server
FYI owncloud is the old directory from which I used to switch to nextcloud without renaming the directory
[webdav] Fatal: Sabre\DAV\Exception\ServiceUnavailable: at <
COPY /owncloud/remote.php/dav/files/g/Fam/F from xxx.xxx.xxx.xxx by me at 2021-03-14T16:19:05+00:00
the Server log says "Login failed...." nevertheless another move process runs and I can also login via WEB into the target srever
Now I can not login any more on both servers... There were too many requests from your network. Retry later or contact your administrator if this is an error.
Will probably have to wait some hours - IMO not a "Business" like solution
can not move files or directory from NC 20.0.7 to federated NC 20.0.4 Message "Could not move .... to ...." or Message "Could not copy .... to ...." both Servers are hosted by the same provider.
Neverthless !!! the files and directory have been moved to the other Server
The problem seems to be "Service not available" because of "too many logins" or something else.. I noticed that the "Shared" directory can not be listed or only after very long wait Timeout issue?
I think it's the problem of federation shares described in https://help.nextcloud.com/t/federated-shares-showing-size-of-pending-storage-is-temporarily-unnavailable/57826/10
workaround for some case if you just want to move very big directories without intention to create federation shares of this folders!!!
Steps to reproduce
Expected behaviour
File FI should be succesfully moved to folder FO, since the folder is also shared among both users.
Actual behaviour
In user's B view, it seems that everything worked fine. There is no warning, no error message, nothing. But when user B reloads the page, she sees that moving the file didn't work.
In the other way round, if User B had uploaded a file directly into folder FO, and user A tried to move this file out of this folder, the file will disappear to User B, who uploaded the file, definitely, and User A will have this file in his root folder, not shared. This is the expected behaviour in this direction, but the other way round it's not working as expected.
Server configuration
Nexclout in branch master
Operating system: Ubuntu 16.04
Web server: Apache
Database: MySQL
PHP version: 7.2
Nextcloud version: (see Nextcloud admin page) 12.0.1
Updated from an older Nextcloud/ownCloud or fresh install: Fresh install
Where did you install Nextcloud from: Github, branch master
Nextcloud log (data/nextcloud.log)
No error in log when doing this operation.
Browser log
No errors in javascript console nor in network.