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

Getting user from /ocs/v2.php/cloud/user endpoint doesn't work #1415

Closed
swoichha opened this issue Sep 4, 2020 · 1 comment
Closed

Getting user from /ocs/v2.php/cloud/user endpoint doesn't work #1415

swoichha opened this issue Sep 4, 2020 · 1 comment

Comments

@swoichha
Copy link
Contributor

swoichha commented Sep 4, 2020

When we try to get user without any uid and gid from endpoint /ocs/v2.php/cloud/user, we get statuscode 400 and error message "missing user in context"

Actual behavior

It gives error message

curl -X GET -k -H "OCS-APIREQUEST=true" https://localhost:9200/ocs/v2.php/cloud/user -u admin:admin -v | xmllint --format -

100   155  100   155    0     0  15500      0 --:--:-- --:--:-- --:--:-- 15500
* Connection #0 to host localhost left intact
<?xml version="1.0" encoding="UTF-8"?>
<ocs>
  <meta>
    <status>error</status>
    <statuscode>400</statuscode>
    <message>missing user in context</message>
  </meta>
</ocs>

Expected behavior

Something similar to of /ocs/v2.php/cloud/users/admin

<?xml version="1.0" encoding="UTF-8"?>
<ocs>
  <meta>
    <status>ok</status>
    <statuscode>200</statuscode>
    <message>OK</message>
  </meta>
  <data>
    <users>
        <username>admin</username>
        <userid>admin</userid>
       ....
    </users>
  </data>
</ocs>
@dpakach dpakach changed the title Getting user from /ocs/v2.php/cloud/user endpoint doesn't seem to be working Getting user from /ocs/v2.php/cloud/user endpoint doesn't work Sep 7, 2020
@haribhandari07 haribhandari07 transferred this issue from owncloud/ocis-ocs Jan 25, 2021
@micbar micbar mentioned this issue Feb 17, 2021
16 tasks
@phil-davis
Copy link
Contributor

@dpakach @swoichha this is an old issue that was transferred from the archived ocis-ocs repo a few weeks ago.
Please close if no longer relevant.

I don't see this issue mentioned in expected-failures.

@settings settings bot removed the p3-medium label Apr 7, 2021
@refs refs closed this as completed Apr 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants