Skip to content

Share api does not allow update permission of a reshared folder #22717

Closed

Description

@nasli

Steps to reproduce

1.User 1 share a folder with user 2 same server with permissions: read, create and share:21
2.User 2 share this folder with user 3 same server,
3.User 2 try to update permissions of this folder for user 3

curl -u user1:user server/ocs/v2.php/apps/files_sharing/api/v1/shares -X POST -d "path=/ab/&shareType=0&shareWith=user2&permissions=21"
curl -u user2:user server/ocs/v2.php/apps/files_sharing/api/v1/shares -X POST -d "path=/ab/&shareType=0&shareWith=user3&permissions=1"
curl -u user2:user server/ocs/v2.php/apps/files_sharing/api/v1/shares/27 -X PUT -d "permissions=17"

Expected behaviour

API allows to update this reshared folder

Actual behaviour

We can not update the permissions
<statuscode>400</statuscode> <message>You can't share your root folder</message>

Server configuration

Today master a1c02a0

Related issue update permissions of a reshared folder #22675

Activity

  1. rullzer commented on Feb 29, 2016

    @rullzer
    Contributor

    Known and fix is already merged #22683

  2. lock commented on Aug 6, 2019

    @lock

    This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  3. locked as resolved and limited conversation to collaborators on Aug 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions