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

[BUG] if service path contains an illegal character, v1 response is shown instead of v2 #1092

Closed
iariasleon opened this issue Jul 22, 2015 · 2 comments
Labels
Milestone

Comments

@iariasleon
Copy link
Contributor

Request:

http://<host>:<port>/v2/entities
Fiware-Service: sdsdhj
Fiware-ServicePath: /service.ry
Accept: application/json
{"type":"room", "id": "room_1", "temp34_0": {"type": "date", "value": "017-06-17T07:21:24.238Z", "very_hot_1": {"type": "alarm", "value": "Afe1BuMTcf"}, "very_hot_0": {"type": "alarm", "value": "Afe1BuMTcf"}}}

Response:

status code: 200 OK
{
  "orionError" : {
    "code" : "400",
    "reasonPhrase" : "Bad Request",
    "details" : "a component of ServicePath contains an illegal character"
  }
}

Expected:

status code: 400 Bad Request
{
    "error" : "BadRequest",
    "description" : "a component of ServicePath contains an illegal character"
}
@iariasleon iariasleon added this to the 0.24.0 milestone Jul 22, 2015
@kzangeli kzangeli changed the title if service path contains an illegal character show v1 response, instead of v2 if service path contains an illegal character, v1 response is shown instead of v2 Jul 22, 2015
@fgalan
Copy link
Member

fgalan commented Jul 22, 2015

Fixed in PR #1095. Please @iariasleon close this issue once you check that the fix is ok.

@iariasleon
Copy link
Contributor Author

LGTM

@iariasleon iariasleon changed the title if service path contains an illegal character, v1 response is shown instead of v2 [BUG] if service path contains an illegal character, v1 response is shown instead of v2 Jul 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants