We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 sharing API always returns an empty exact list while searching for a sharee
Steps to reproduce the behavior:
Einstein
Einstein_one
Einstein1
einstein
curl -vk -uadmin:admin https://host.docker.internal:9200/ocs/v1.php/apps/files_sharing/api/v1/sharees\?search\=einstein\&itemType\=file -H"OCS-APIREQUEST:1" | xmllint --format -
Something like that of 0C10 where the exact match is shown in <exact> and other matches in <users>
exact
<exact>
<users>
curl -v -uadmin:admin http://localhost/core/ocs/v1.php/apps/files_sharing/api/v1/sharees\?search\=einstein\&itemType\=file -H"OCS-APIREQUEST:1" | xmllint --format -
<?xml version="1.0"?> <ocs> <meta> <status>ok</status> <statuscode>100</statuscode> <message>OK</message> <totalitems/> <itemsperpage/> </meta> <data> <exact> <users> <element> <label>einstein</label> <value> <shareType>0</shareType> <shareWith>einstein</shareWith> <userType>0</userType> </value> </element> </users> <groups/> <remotes/> </exact> <users> <element> <label>Albert Einstein</label> <value> <shareType>0</shareType> <shareWith>Albert Einstein</shareWith> <userType>0</userType> </value> </element> <element> <label>einstein-einstein</label> <value> <shareType>0</shareType> <shareWith>einstein-einstein</shareWith> <userType>0</userType> </value> </element> <element> <label>einstein1</label> <value> <shareType>0</shareType> <shareWith>einstein1</shareWith> <userType>0</userType> </value> </element> </users> <groups/> <remotes/> </data> </ocs>
The exact list is always empty and all the matches are shown on the user list
user
<?xml version="1.0" encoding="UTF-8"?> <ocs> <meta> <status>ok</status> <statuscode>100</statuscode> <message>OK</message> </meta> <data> <exact> <users/> <groups/> <remotes/> </exact> <users> <element> <label>Einstein one</label> <value> <shareType>0</shareType> <shareWith>Einstein1</shareWith> <shareWithAdditionalInfo>one@example.com</shareWithAdditionalInfo> </value> </element> <element> <label>Albert</label> <value> <shareType>0</shareType> <shareWith>Einstein_one</shareWith> <shareWithAdditionalInfo>albert@example.com</shareWithAdditionalInfo> </value> </element> <element> <label>Albert Einstein</label> <value> <shareType>0</shareType> <shareWith>einstein</shareWith> <shareWithAdditionalInfo>einstein@example.org</shareWithAdditionalInfo> </value> </element> </users> <groups/> <remotes/> </data> </ocs>
Please describe how you started the server and provide a list of relevant environment variables or configuration files.
OCIS_XXX=somevalue OCIS_YYY=somevalue PROXY_XXX=somevalue
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Also see this comment: #547 (comment)
Sorry, something went wrong.
maybe this issue linked to issue #2376
The format of the response is a little bit different now but true could be inter-related
2403905
Successfully merging a pull request may close this issue.
Describe the bug
OCS sharing API always returns an empty exact list while searching for a sharee
Steps to reproduce
Steps to reproduce the behavior:
Einstein
,Einstein_one
,Einstein1
einstein
Expected behavior
Something like that of 0C10 where the
exact
match is shown in<exact>
and other matches in<users>
Response
Actual behavior
The
exact
list is always empty and all the matches are shown on theuser
listResponse
Setup
Please describe how you started the server and provide a list of relevant environment variables or configuration files.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: