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 }}
This repository was archived by the owner on Nov 23, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 23, 2026. It is now read-only.
[oCIS] Received share cannot be deleted/unshared if not shared with full permissions #5531
For oCIS this will no longer be an issue once we have solved #6448 because the All files page (then being renamed to Personal) will not contain any shares anymore. Thus the delete action will always be an actual delete operation.
For oc10 I'd love to see that we only show the Delete action if it's not a share, and show the Decline share action instead when it's a share. I tried that once and it failed horribly in acceptance tests. Would be worth another try though if @tbsbdr agrees.
I wanted to dig into this, unfortunately I don't see an easy solution here.
For oc10 I'd love to see that we only show the Delete action if it's not a share, and show the Decline share action instead when it's a share. I tried that once and it failed horribly in acceptance tests. Would be worth another try though if @tbsbdr agrees.
We somehow need to find out if a resource is the share root (the folder that has been shared itself). There is a method called isReceivedShare, but it does not only return true for the root of a share, but also for all resources inside a share. canBeDeleted on the other hand is always true for share roots in oC10, because it's basically the "Decline Share"-action.
Activity
kulmann commentedon Mar 8, 2022
For oCIS this will no longer be an issue once we have solved #6448 because the
All filespage (then being renamed toPersonal) will not contain any shares anymore. Thus the delete action will always be an actual delete operation.For oc10 I'd love to see that we only show the
Deleteaction if it's not a share, and show theDecline shareaction instead when it's a share. I tried that once and it failed horribly in acceptance tests. Would be worth another try though if @tbsbdr agrees.tbsbdr commentedon Mar 8, 2022
👍 yep agree
JammingBen commentedon May 18, 2022
I wanted to dig into this, unfortunately I don't see an easy solution here.
We somehow need to find out if a resource is the share root (the folder that has been shared itself). There is a method called
isReceivedShare, but it does not only returntruefor the root of a share, but also for all resources inside a share.canBeDeletedon the other hand is always true for share roots in oC10, because it's basically the "Decline Share"-action.AlexAndBear commentedon Jul 8, 2022
@kulmann is this still an issue?
I can decline a share as of today
kulmann commentedon Jul 8, 2022
True, issue has been resolved by switching to the share jail. Thanks for the pointer :-)