hydroserver2 / hydroserver

Documentation and issue tracker for HydroServer and related applications
BSD 3-Clause "New" or "Revised" License
5 stars 0 forks source link

SensorThings should return 400 code if IDs not wrapped in quotes #163

Closed kjlippold closed 2 months ago

kjlippold commented 3 months ago

Steps to Reproduce

Use SensorThings to query a resource without wrapping the ID in quotes, such as: http://beta.hydroserver2.org/api/sensorthings/v1.1/Things(96568748-eb4e-45b0-a621-04636df684a5)

Expected Behavior

These types of requests should return 400 responses since the API expects IDs to be wrapped in quotes.

Actual Behavior

The API is currently not handling the issue correctly and returning a 500 code.

Any additional comments?

No response

kjlippold commented 2 months ago

https://github.com/hydroserver2/hydroserver-sensorthings/commit/b5ca1b138946c5d450429bb6040ec490c6eef2ec