-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
OCS Share API - "permissions" parameter has no effect #23146
Comments
I can add that some of check is done, because when entering arbitary number (permissons=100) i get error
Otherwise Share permission is always 1 (read only) Same experience in Nextcloud 20.0.8RC1. Have you tried 20.0.8 stable release, @kepon85 ? |
Hi there, can you please post your question in https://help.nextcloud.com/c/dev/11 thats the better place for this. |
It's rather than a bug, no? |
Did you find any solution for this? |
If you do an unshare first and the share, the permissions will be set correctly. If you just re-share an existing share the permissions will stay as set the first time without returning an error. Observed in NC 21.0.2 |
I had the same issue with different versions of nextcloud. As a workaround, I'm creating the share and set the permissions with Update Share PUT command afterwards. That works fine. |
Not solved yet, hello? Why closed? |
but the ocs update api is also not working |
FTR, there is a new version of this bug report: #32611 |
Hello,
Thank's for Nextcloud !
I am the documentation : https://docs.nextcloud.com/server/stable/developer_manual/client_apis/OCS/ocs-share-api.html#create-a-new-share
I'm looking to create the share of a write-enabled file with the OCS Share API
But the "permissions" parameter seems to have no effect ...
My code :
The var_dump say permissions = 17 :-/
If I manually change the file permission in nextcloud (write permission), then I GET the share (https://docs.nextcloud.com/server/stable/developer_manual/client_apis/OCS/ocs-share- api.html # get-information-about-a-known-share) I get permissions = 19 :
I tried with the value 1, 2, 10, 31 ... none seems to have an effect ... yet the rest of the arguments have an effect (password for example)
I guess it's a bug ...
Nextcloud 19.0.3 / Apache / PHP 7.3 / Mysql
The text was updated successfully, but these errors were encountered: