-
-
Notifications
You must be signed in to change notification settings - Fork 296
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
Interoperability failure retrieving list of sharees #15838
Comments
According to 1 the OCS API is deprecated and we should probably aim to support sharing via LibreGraph API. Footnotes |
Originally implemented for #14197. |
Relates to #14166. |
Can you please post the request to better understand the context? |
This is the HTTP transcript ✅ with
compared to the HTTP transcript 🔴 with
(The previous 400 Bad Request was when requesting the v2.php |
Thanks for the details. This is security related. In infinite scale, we do not accept a sharee search request without a search term. We don't want to be able to list all possible users. That would disclose too much information. Example Request
curl 'https://ocis.ocis-wopi.released.owncloud.works/ocs/v2.php/apps/files_sharing/api/v1/sharees?search=ein&itemType=folder&page=1&perPage=200&format=json' \
-H 'accept: */*' \
-H 'accept-language: en' \
-H 'authorization: Bearer <access-token>' \
-H 'cache-control: no-cache' \
-H 'ocs-apirequest: true' \ Response{
"ocs": {
"meta": {
"status": "ok",
"statuscode": 200,
"message": "OK"
},
"data": {
"exact": {
"users": [],
"groups": [],
"remotes": []
},
"users": [
{
"label": "Albert Einstein",
"value": {
"shareType": 0,
"shareWith": "einstein",
"shareWithProvider": "",
"shareWithAdditionalInfo": "einstein@example.org",
"userType": 0
}
}
],
"groups": [],
"remotes": []
}
}
} |
Thanks for the clarification @micbar. |
In bb859c1. |
Sharing a file or folder fails with
Bad Request. search must not be empty. Please contact your web hosting service provider for assistance.
when connected to oCIS.The text was updated successfully, but these errors were encountered: