Skip to content

Deleting a file inside a received shared folder is moved to the trashbin of the sharer not the receiver #1124

Open

Description

@individual-it
  1. as einstein share a folder with marie
  2. as marie accept the share
  3. as marie delete Shares/received-share/some-file
  4. as marie check the trash-bin => the file is not listed
  5. as einstein check the trash-bin => the deleted file is listed but with a wrong path (.../)
    image
  6. as einstein try to restore the deleted file => it fails with HTTP 404

expected:
in oC10 deleting a file inside a received share will move it to the trashbin of the receiver

Activity

  1. SwikritiT commented on Jan 5, 2021

    @SwikritiT
    Contributor

    I couldn't recreate the exact same error. Maybe it has been fixed. Deleting a file inside a received shared folder is moved to the trash-bin of the receiver . However , when I try to restore the file it gives me error. I have written some tests for it.

  2. individual-it commented on Jan 7, 2021

    @individual-it
    MemberAuthor

    issues was not fixed by the PR, only tests have been added

  3. changed the title [-]deleting a file inside a received shared folder is moved to the trash-bin of the sharer not the receiver[/-] [+]Deleting a file inside a received shared folder is moved to the trash-bin of the sharer not the receiver[/+] on Jan 13, 2021
  4. added
    Category:Defect
    Interaction:Needs-help
    on Jan 13, 2021
  5. phil-davis commented on Jun 14, 2021

    @phil-davis
    Contributor

    @jasson99 please mention how you are able to reproduce this issue, including if it happens only on one storage...

  6. jasson99 commented on Jun 14, 2021

    @jasson99
    Contributor

    Yes, this issue is still present in ocis-storage. This can be reproduced in the webui as well as through api. Even the related api tests which were tagged with this issue are still failing with this specific reason.
    Screenshot from 2021-06-14 17-37-56

  7. jasson99 commented on Jun 25, 2021

    @jasson99
    Contributor

    I think this is same as : #1128

  8. phil-davis commented on Jun 25, 2021

    @phil-davis
    Contributor

    @jasson99 yes. This issue 1124 is mentioned in expected failures, but #1128 is not. So if we close this issue, then we need to update expected-failures also.

  9. changed the title [-]Deleting a file inside a received shared folder is moved to the trash-bin of the sharer not the receiver[/-] [+]Deleting a file inside a received shared folder is moved to the trashbin of the sharer not the receiver[/+] on Aug 11, 2021
  10. pmaier1 commented on Aug 11, 2021

    @pmaier1

    expected:
    in oC10 deleting a file inside a received share will move it to the trashbin of the receiver

    In oC 10 the deleted file would be in both, the trash bin of the user who deleted the file and the trash bin of the user who owns the file (sharer).

  11. PrajwolAmatya commented on Mar 6, 2024

    @PrajwolAmatya
    Contributor

    With latest master, when share receiver deletes file from shared folder, the deleted file is listed in the sharer's trashbin and not listed in share receiver's trashbin. Also, sharer is able to restore the deleted file, which is available for both sharer and the receiver. As part of issue owncloud/web#10259, I have added an e2e test according to the current behavior. owncloud/web#10550

  12. micbar commented on Jun 5, 2024

    @micbar
    Contributor

    @butonic @kobergj @aduffeck That looks like a bug to me.

  13. v-scharf commented on Jun 12, 2024

    @v-scharf
    Contributor

    That looks like a bug to me.

    @micbar what do you expect here? receiver should listed deleted files? it's not implemented in ocis

    in case sharing folder and deleting folder content:
    PROPFIND https://localhost:9200/remote.php/dav/spaces/trash-bin/{mountpoint/sharedFolder} -> 500 method not implemented

    in case sharing file and deleting file:
    PROPFIND https://localhost:9200/remote.php/dav/spaces/trash-bin/{virtual/shares} -> 500 method not implemented

  14. DeepDiver1975 commented on Jun 26, 2026

    @DeepDiver1975
    Contributor

    🤖 Automated triage by the Claude Code review agent.

    Status: still a live bug on master (confirmed, not obsolete).

    Despite the storage/spaces re-architecture since this was filed in 2020, the underlying defect is still present and is actively tracked by the test suite:

    Observed vs. expected behavior (current master):

    • Expected: when a share receiver deletes a file inside a received share, the file should appear in the receiver's trashbin (and per the oC10 reference, in the sharer's trashbin too) and be restorable to its original path.
    • Actual: the deleted item lands only in the sharer's trashbin; the receiver does not see it in their own trashbin, and restore behavior is inconsistent (PrajwolAmatya, 2024-06: only the sharer can restore).

    Located cause (high level): receiver-side trashbin listing for share mountpoints is effectively not implemented in the spaces/DAV trashbin path. As reported on this thread, PROPFIND .../dav/spaces/trash-bin/{mountpoint/sharedFolder} and .../dav/spaces/trash-bin/{virtual/shares} return 500 method not implemented for the receiver. So the trashbin entry is created against the owner's space (where the blob physically lives) rather than being surfaced in the receiver's view — which is exactly the "moved to the trashbin of the sharer not the receiver" symptom. A proper fix requires defining and implementing trashbin semantics for received shares (virtual/shares space) so the deleting receiver can list and restore their own deletions.

    No fix PR is being opened by this agent (automated fix generation is disabled for this repo); this comment is triage only. The @issue-1124-tagged expected-failures remain the definitive regression guard for when this is addressed.

  15. dj4oC commented on Jul 8, 2026

    @dj4oC
    Contributor

    Before this can be acted on, the following needs to be resolved:

    • Verified still reproducing: tracked in tests/acceptance/expected-failures-API-on-OCIS-storage.md (coreApiTrashbin/trashbinSharingToShares.feature, multiple lines) under this issue.
    • The trashbin placement logic for shared-folder deletions lives in the owncloud/reva dependency's decomposedfs storage driver, not in this repository. Confirm whether the fix should be filed against owncloud/reva directly.
    • This is a significant behavioral/architecture question (per-share-receiver trash vs. shared trash rooted at the owner) rather than a small bug fix — confirm the desired data model before scoping: should each user's trashbin be keyed by their own view of the resource regardless of ownership, and does this interact with quota/ownership accounting for the deleted file?

    🤖 Automated by Claude Code


    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Category:DefectInteraction:Needs-helpType:Bug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions