{"action":"opened","issue":{"url":"https://api.github.com/repos/telefonicaid/fiware-orion/issues/1995","repository_url":"https://api.github.com/repos/telefonicaid/fiware-orion","labels_url":"https://api.github.com/repos/telefonicaid/fiware-orion/issues/1995/labels{/name}","comments_url":"https://api.github.com/repos/telefonicaid/fiware-orion/issues/1995/comments","events_url":"https://api.github.com/repos/telefonicaid/fiware-orion/issues/1995/events","html_url":"https://github.com/telefonicaid/fiware-orion/issues/1995","id":145704011,"number":1995,"title":"[BUG] in GET v2/entities using \"q\" query parameter, seconds and mSecs are not validated","user":{"login":"iariasleon","id":4330098,"avatar_url":"https://avatars.githubusercontent.com/u/4330098?v=3","gravatar_id":"","url":"https://api.github.com/users/iariasleon","html_url":"https://github.com/iariasleon","followers_url":"https://api.github.com/users/iariasleon/followers","following_url":"https://api.github.com/users/iariasleon/following{/other_user}","gists_url":"https://api.github.com/users/iariasleon/gists{/gist_id}","starred_url":"https://api.github.com/users/iariasleon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iariasleon/subscriptions","organizations_url":"https://api.github.com/users/iariasleon/orgs","repos_url":"https://api.github.com/users/iariasleon/repos","events_url":"https://api.github.com/users/iariasleon/events{/privacy}","received_events_url":"https://api.github.com/users/iariasleon/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/telefonicaid/fiware-orion/labels/APIv2","name":"APIv2","color":"5319e7"},{"url":"https://api.github.com/repos/telefonicaid/fiware-orion/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/telefonicaid/fiware-orion/labels/P5","name":"P5","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/telefonicaid/fiware-orion/milestones/25","html_url":"https://github.com/telefonicaid/fiware-orion/milestones/1.1.0","labels_url":"https://api.github.com/repos/telefonicaid/fiware-orion/milestones/25/labels","id":1562952,"number":25,"title":"1.1.0","description":"","creator":{"login":"fgalan","id":1534240,"avatar_url":"https://avatars.githubusercontent.com/u/1534240?v=3","gravatar_id":"","url":"https://api.github.com/users/fgalan","html_url":"https://github.com/fgalan","followers_url":"https://api.github.com/users/fgalan/followers","following_url":"https://api.github.com/users/fgalan/following{/other_user}","gists_url":"https://api.github.com/users/fgalan/gists{/gist_id}","starred_url":"https://api.github.com/users/fgalan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fgalan/subscriptions","organizations_url":"https://api.github.com/users/fgalan/orgs","repos_url":"https://api.github.com/users/fgalan/repos","events_url":"https://api.github.com/users/fgalan/events{/privacy}","received_events_url":"https://api.github.com/users/fgalan/received_events","type":"User","site_admin":false},"open_issues":41,"closed_issues":5,"state":"open","created_at":"2016-02-04T10:19:06Z","updated_at":"2016-04-04T14:40:57Z","due_on":"2016-04-29T22:00:00Z","closed_at":null},"comments":0,"created_at":"2016-04-04T14:40:57Z","updated_at":"2016-04-04T14:40:57Z","closed_at":null,"body":"in GET v2/entities using \"q\" query parameter, seconds and mSecs are not validated. Before seconds (year, month, day, hour, minute) all are validate, but after minutes not.\r\n\r\n#### cases that return 200 - OK \r\n - /v2/entities?q=my_time>=2016-04-05T14:10:00.00Z\r\n - /v2/entities?q=my_time>=2016-04-05T14:10:4**XX**\r\n - /v2/entities?q=my_time>=2016-04-05T14:10:00**;**00Z\r\n - /v2/entities?q=my_time>=2016-04-05T14:10:00.**j**00Z\r\n - /v2/entities?q=my_time>=2016-04-05T14:10:00.00**N**\r\n\r\n#### case that return 400 - Bad Request \r\n```\r\n{\r\n\"error\": \"BadRequest\"\r\n\"description\": \"invalid query expression\"\r\n}\r\n```\r\n - year, month, day, hour, minute and them separators are validated\r\n - /v2/entities?q=my_time>=2016-04-05T14**;**10:00.00Z"}}