You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Setup two servers: "localserver" and "remoteserver".
On "remoteserver" share a folder "shared_folder" with link and allow upload
Create or upload files to "shared_folder", say "test.txt".
On "localserver" enable the external storage app
Open the link from 2.
Add the link as external mount to "localserver"
On "localserver" delete the file "test.txt"
On "localserver" restore the file "test.txt"
Expected result
"test.txt" appears in the trashbin on "localserver" and also on "remoteserver".
After restoring, the file "test.txt" is back into the folder "shared_folder".
Actual result
"test.txt" only appears in the trashbin on "localserver".
The user from "remoteserver" doesn't have any chance to restore the file.
After restoring "test.txt" the file disappeared and does not appear in the original folder any more.
After restoring "test.txt" the file disappeared and does not appear in the original folder any more.
The file gets restored to the root folder because it is not possible to move a file to a server-to-server mount, even if the link was shared with update permissions, probably similar to #9087
For the question, why the file doesn't appear at the owners trash bin, I'm a little bit confused. A normal webdav delete (e.g. with cadaver) calls the delete() method in /lib/private/connector/sabre/file.php on the server. But if I delete a file from a server-to-server mount this function isn't called. 😕
Even if I use cadaver to open a public link and delete a file the delete() method from sabredav is called.
If I use the external storage app to mount one ownCloud to another one then the delete() method from sabredav is called too.
Somethings seems to be different if you delete a file from a server-to-server mount compared to a normal webdav mount and to a normal webdav access.
I think I can access the file through the server to server, even when it is encrypted - right? Then I delete it, but since it isn't my server, the keys don't come over, and then junk is left? Just verifying I understand.
Activity
schiessle commentedon Jun 18, 2014
The file gets restored to the root folder because it is not possible to move a file to a server-to-server mount, even if the link was shared with update permissions, probably similar to #9087
schiessle commentedon Jun 18, 2014
For the question, why the file doesn't appear at the owners trash bin, I'm a little bit confused. A normal webdav delete (e.g. with cadaver) calls the delete() method in /lib/private/connector/sabre/file.php on the server. But if I delete a file from a server-to-server mount this function isn't called. 😕
Even if I use cadaver to open a public link and delete a file the delete() method from sabredav is called.
If I use the external storage app to mount one ownCloud to another one then the delete() method from sabredav is called too.
Somethings seems to be different if you delete a file from a server-to-server mount compared to a normal webdav mount and to a normal webdav access.
@icewind1991 any idea what's going on here?
PVince81 commentedon Jun 20, 2014
Setting milestone to OC 7 CE.
craigpg commentedon Jun 26, 2014
Moving this to oC 7.0.1
MTRichards commentedon Sep 4, 2014
I think I can access the file through the server to server, even when it is encrypted - right? Then I delete it, but since it isn't my server, the keys don't come over, and then junk is left? Just verifying I understand.
PVince81 commentedon Sep 5, 2014
Yes, this is how I understood it as well.