Skip to content

Trashbin behavior issue with remote shares #9094

Closed

Description

@PVince81

Steps to reproduce:

  1. Setup two servers: "localserver" and "remoteserver".
  2. On "remoteserver" share a folder "shared_folder" with link and allow upload
  3. Create or upload files to "shared_folder", say "test.txt".
  4. On "localserver" enable the external storage app
  5. Open the link from 2.
  6. Add the link as external mount to "localserver"
  7. On "localserver" delete the file "test.txt"
  8. 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.

More information

Using OC 7 git master baf46c7 on both servers

You might want to try with encryption + trashbin as well after fixing.

@schiesbn @icewind1991

Activity

  1. schiessle commented on Jun 18, 2014

    @schiessle
    Contributor

    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

  2. schiessle commented on Jun 18, 2014

    @schiessle
    Contributor

    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?

  3. PVince81 commented on Jun 20, 2014

    @PVince81
    ContributorAuthor

    Setting milestone to OC 7 CE.

  4. added this to the ownCloud 7 CE milestone on Jun 20, 2014
  5. modified the milestones: , ownCloud 7 CE on Jun 26, 2014
  6. craigpg commented on Jun 26, 2014

    @craigpg

    Moving this to oC 7.0.1

  7. self-assigned this
    on Aug 8, 2014
  8. modified the milestones: , on Sep 2, 2014
  9. MTRichards commented on Sep 4, 2014

    @MTRichards
    Contributor

    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.

  10. PVince81 commented on Sep 5, 2014

    @PVince81
    ContributorAuthor

    Yes, this is how I understood it as well.

  11. modified the milestones: , 2014-sprint-03 on Sep 15, 2014
  12. modified the milestones: , 2014-sprint-04 on Sep 29, 2014
  13. modified the milestones: , 2014-sprint-05 on Oct 12, 2014
  14. modified the milestones: , 2014-sprint-06 on Oct 27, 2014
  15. modified the milestones: , 2014-sprint-07 on Nov 10, 2014
  16. locked as resolved and limited conversation to collaborators on Aug 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions