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

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

Closed
nasli opened this issue Feb 29, 2016 · 2 comments
Closed

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

nasli opened this issue Feb 29, 2016 · 2 comments

Comments

@nasli
Copy link

nasli commented Feb 29, 2016

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

@rullzer
Copy link
Contributor

rullzer commented Feb 29, 2016

Known and fix is already merged #22683

@rullzer rullzer closed this as completed Feb 29, 2016
@lock
Copy link

lock bot commented Aug 6, 2019

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.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants