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

BBOX Validation #66

Closed
Nmargolis opened this issue May 17, 2018 · 0 comments · Fixed by #178
Closed

BBOX Validation #66

Nmargolis opened this issue May 17, 2018 · 0 comments · Fixed by #178

Comments

@Nmargolis
Copy link

A GET request with an invalid bbox to the /api/data/features/endpoint currently returns a 500 error.
For example: http://localhost:8888/api/data/features?bbox=badbbox

It might be nice to have some validation of the bbox parameter and get a 400 response if the bbox isn't in the expected format.

Not sure where the server is erroring out, but maybe here? /src/lib.rs#L460

cc: @mattficke

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants