Open individual-it opened 3 years ago
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.
issues was not fixed by the PR, only tests have been added
@jasson99 please mention how you are able to reproduce this issue, including if it happens only on one storage...
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.
I think this is same as : https://github.com/owncloud/ocis/issues/1128
@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.
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).
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 https://github.com/owncloud/web/issues/10259, I have added an e2e test according to the current behavior. https://github.com/owncloud/web/pull/10550
@butonic @kobergj @aduffeck That looks like a bug to me.
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
einstein
share a folder withmarie
marie
accept the sharemarie
deleteShares/received-share/some-file
marie
check the trash-bin => the file is not listedeinstein
check the trash-bin => the deleted file is listed but with a wrong path (.../
)einstein
try to restore the deleted file => it fails with HTTP 404expected: in oC10 deleting a file inside a received share will move it to the trashbin of the receiver