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

Erroneous API v2 request receives API v1 response #2765

Closed
kzangeli opened this issue Dec 14, 2016 · 1 comment · Fixed by #2789
Closed

Erroneous API v2 request receives API v1 response #2765

kzangeli opened this issue Dec 14, 2016 · 1 comment · Fixed by #2789
Labels
Milestone

Comments

@kzangeli
Copy link
Member

This functest:

payload='"a string"'
orionCurl --url /v2/entities --payload "$payload" --out "bad-mime-type"  --servicePath /error

receives this response:

HTTP/1.1 406 Not Acceptable
Content-Length: 145
Content-Type: application/json
Fiware-Correlator: REGEX([0-9a-f\-]{36})
Date: REGEX(.*)

{
    "orionError": {
        "code": "406",
        "details": "no acceptable mime-type in accept header",
        "reasonPhrase": "Not Acceptable"
    }
}

Which is of type API v1.
This is a bug and it should be fixed.

@fgalan
Copy link
Member

fgalan commented Dec 23, 2016

Fixed by PR #2789

(I didn't plan to fix this, but I needed for #2760)

@fgalan fgalan closed this as completed Dec 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants