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

Different ocs status code in ocis and oc10 when using ocs api-v2 #521

Closed
jasson99 opened this issue Sep 4, 2020 · 1 comment
Closed
Labels
Category:Defect Existing functionality is not working as expected Type:Bug

Comments

@jasson99
Copy link
Contributor

jasson99 commented Sep 4, 2020

Description:

OCIS returns incorrect status code for some requests in ocs api-v2.

How to reproduce:

A. In Ocis

  1. Get information about a non-existing user as:
curl -s -k -u admin:admin -X GET https://localhost:9200/ocs/v2.php/cloud/users/New-User-not | xmllint --format -

<ocs>
  <meta>
    <status>error</status>
    <statuscode>998</statuscode>
    <message>The requested user could not be found</message>
  </meta>
</ocs>

B. In OC10:

  1. Get information of a non-existing user as:
 curl -u admin:admin http://172.17.0.1/oc/ocs/v2.php/cloud/users/new-user-not | xmllint --format -

<ocs>
  <meta>
    <status>failure</status>
    <statuscode>404</statuscode>
    <message>The requested user could not be found</message>
  </meta>
  <data/>
</ocs>

@kobergj
Copy link
Collaborator

kobergj commented Jun 3, 2024

I'd say ocis doesn't necessarily need to return the same status codes as oc10 always. Hence I'm closing this.

@kobergj kobergj closed this as completed Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category:Defect Existing functionality is not working as expected Type:Bug
Projects
None yet
Development

No branches or pull requests

3 participants