You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Several GET requests (and one POST) against /elements/area and related aggregation endpoints return HTTP 500 Internal Server Error instead of a 400 Bad Request, when the keys/values query parameters contain unusual but non-malicious content. I collected 19 such requests during an automated test session and reproduced every one of them manually in Postman with the same result.
General Information
Tested against the live remote instance at https://api.ohsome.org/v1
Version of the ohsome API: 1.10.4 . The main branch I read the source from is this commit
An unusual or malformed keys/values combination should come back as 400 Bad Request with a message describing what's wrong, the same way a malformed bboxes value already does; not a bare 500 with no explanation.
Bug Description
Several GET requests (and one POST) against
/elements/areaand related aggregation endpoints returnHTTP 500 Internal Server Errorinstead of a400 Bad Request, when thekeys/valuesquery parameters contain unusual but non-malicious content. I collected 19 such requests during an automated test session and reproduced every one of them manually in Postman with the same result.General Information
https://api.ohsome.org/v11.10.4. Themainbranch I read the source from is this commit/elements/area,/elements/area/groupBy/key,/elements/area/groupBy/boundary,/elements/area/ratio/groupBy/boundary,/elements/count/ratio/groupBy/boundaryError Reproduce command
Expected Behaviour
An unusual or malformed
keys/valuescombination should come back as400 Bad Requestwith a message describing what's wrong, the same way a malformedbboxesvalue already does; not a bare500with no explanation.