Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[oCIS] Received share cannot be deleted/unshared if not shared with full permissions #5531

Closed
saw-jan opened this issue Jul 15, 2021 · 5 comments
Assignees
Labels
Priority:p2-high Escalation, on top of current planning, release blocker Type:Bug Something isn't working

Comments

@saw-jan
Copy link
Member

saw-jan commented Jul 15, 2021

Steps to reproduce

(using web with oCIS server)

  1. as admin, create folder FOLDER and share it with user moss with Viewer role
  2. as moss, accept share shared by admin
  3. as moss, open Shares folder and try to delete the folder FOLDER

Expected behaviour

expected to see delete operation

Actual behaviour

shared file/folder cannot be deleted if not shared with all permissions (31)
ocis-share

Server configuration

oCIS server built from latest master

@saw-jan saw-jan added the Type:Bug Something isn't working label Jul 15, 2021
@kulmann kulmann added the Priority:p2-high Escalation, on top of current planning, release blocker label Dec 3, 2021
@kulmann
Copy link
Member

kulmann commented Mar 8, 2022

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.

@tbsbdr
Copy link
Contributor

tbsbdr commented Mar 8, 2022

👍 yep agree

@JammingBen JammingBen assigned JammingBen and unassigned dschmidt May 18, 2022
@JammingBen
Copy link
Contributor

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.

@AlexAndBear
Copy link
Contributor

AlexAndBear commented Jul 8, 2022

@kulmann is this still an issue?
I can decline a share as of today

@kulmann
Copy link
Member

kulmann commented Jul 8, 2022

@kulmann is this still an issue?
I can decline a share as of today

True, issue has been resolved by switching to the share jail. Thanks for the pointer :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority:p2-high Escalation, on top of current planning, release blocker Type:Bug Something isn't working
Projects
No open projects
Status: Done
Development

No branches or pull requests

6 participants