-
Notifications
You must be signed in to change notification settings - Fork 186
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
Issue related to config OCIS_SHARING_PUBLIC_WRITEABLE_SHARE_MUST_HAVE_PASSWORD
#6401
Comments
OCIS_SHARING_PUBLIC_WRITEABLE_SHARE_MUST_HAVE_PASSWORD
It works when we fisrt set the permission to |
This is the User Flow in the WebUI The api should also enforce passwords when creating a public share. @kobergj |
see cs3org/reva#3970 |
Describe the bug
While running the API test with config
OCIS_SHARING_PUBLIC_WRITEABLE_SHARE_MUST_HAVE_PASSWORD
to true, and if we do not set password forupload, edit or contribute
permissions, the returned response is200
.It works fine manually.
Steps to reproduce
Steps to reproduce the behavior:
OCIS_SHARING_PUBLIC_WRITEABLE_SHARE_MUST_HAVE_PASSWORD
to true.testfile.txt
curl -k -X POST https://localhost:9200/ocs/v1.php/apps/files_sharing/api/v1/shares -d'shareType=3&path=/testfile.txt&permissions=3' -uadmin:admin -v
Actual behavior
The response returns status code
200
, and the link is created without password.Actual Response:
Now, if we update the public link using command:
curl -k -X PUT https://localhost:9200/ocs/v1.php/apps/files_sharing/api/v1/shares/<share_id> -d'permissions=3' -uadmin:admin -v
Then it returns the response:
Is this the actual behavior?
The text was updated successfully, but these errors were encountered: