Skip to content
This repository was archived by the owner on Nov 23, 2026. It is now read-only.
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

Closed

Description

@saw-jan

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

Activity

  1. added
    Type:Bug
    on Jul 15, 2021
  2. added
    Priority:p2-high
    on Dec 3, 2021
  3. kulmann commented on Mar 8, 2022

    @kulmann
    Contributor

    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.

  4. tbsbdr commented on Mar 8, 2022

    @tbsbdr

    👍 yep agree

  5. JammingBen commented on May 18, 2022

    @JammingBen
    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.

  6. AlexAndBear commented on Jul 8, 2022

    @AlexAndBear
    Contributor

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

  7. kulmann commented on Jul 8, 2022

    @kulmann
    Contributor

    @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

Metadata

Metadata

Assignees

Labels

Priority:p2-highType:Bug

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions