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
{{ message }}
Repository navigation
Deleting a file inside a received shared folder is moved to the trashbin of the sharer not the receiver #1124
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.
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
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.
@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.
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
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
@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
🤖 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:
The acceptance scenarios for this behavior remain tagged @issue-1124 in tests/acceptance/features/coreApiTrashbin/trashbinSharingToShares.feature (e.g. "sharee deleting a file in a group-shared folder moves it to the trashbin of sharee and sharer only", "…after renaming the shared folder moves it to trashbin of both users", "…restored it comes back to the original path").
Those scenarios are still listed under this issue in expected-failures-API-on-OCIS-storage.md (lines 54-56, 83-85, 142-144), i.e. they are known-failing on current oCIS.
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.
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?
Activity
SwikritiT commentedon Jan 5, 2021
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.
individual-it commentedon Jan 7, 2021
issues was not fixed by the PR, only tests have been added
[-]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[/+]phil-davis commentedon Jun 14, 2021
@jasson99 please mention how you are able to reproduce this issue, including if it happens only on one storage...
jasson99 commentedon Jun 14, 2021
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.

jasson99 commentedon Jun 25, 2021
I think this is same as : #1128
phil-davis commentedon Jun 25, 2021
@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.
[-]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[/+]pmaier1 commentedon Aug 11, 2021
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).
PrajwolAmatya commentedon Mar 6, 2024
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
micbar commentedon Jun 5, 2024
@butonic @kobergj @aduffeck That looks like a bug to me.
v-scharf commentedon Jun 12, 2024
@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 implementedin case sharing file and deleting file:
PROPFIND https://localhost:9200/remote.php/dav/spaces/trash-bin/{virtual/shares}-> 500 method not implementedDeepDiver1975 commentedon Jun 26, 2026
🤖 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:
@issue-1124intests/acceptance/features/coreApiTrashbin/trashbinSharingToShares.feature(e.g. "sharee deleting a file in a group-shared folder moves it to the trashbin of sharee and sharer only", "…after renaming the shared folder moves it to trashbin of both users", "…restored it comes back to the original path").expected-failures-API-on-OCIS-storage.md(lines 54-56, 83-85, 142-144), i.e. they are known-failing on current oCIS.Observed vs. expected behavior (current master):
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}return500 method not implementedfor 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.dj4oC commentedon Jul 8, 2026
Before this can be acted on, the following needs to be resolved:
tests/acceptance/expected-failures-API-on-OCIS-storage.md(coreApiTrashbin/trashbinSharingToShares.feature, multiple lines) under this issue.owncloud/revadependency's decomposedfs storage driver, not in this repository. Confirm whether the fix should be filed againstowncloud/revadirectly.🤖 Automated by Claude Code
Generated by Claude Code