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

Invalid limit values allowed #221

Closed
philvarner opened this issue Aug 11, 2021 · 1 comment
Closed

Invalid limit values allowed #221

philvarner opened this issue Aug 11, 2021 · 1 comment

Comments

@philvarner
Copy link
Collaborator

philvarner commented Aug 11, 2021

Unless otherwise advertised in the service-desc (which doesn't currently exist), the valid values for limit are integers 1 to 10000. The following query values return a 200 instead of 400:

  • GET Search with {'limit': -1} returned status code 200, should be 400
  • POST Search with {'limit': -1} returned status code 200, should be 400
  • GET Search with {'limit': 0} returned status code 200, should be 400
  • POST Search with {'limit': 0} returned status code 200, should be 400
  • GET Search with {'limit': 10001} returned status code 200, should be 400
  • POST Search with {'limit': 10001} returned status code 200, should be 400

This was tested with a local docker-compose instance of stac-fastapi-sqlalchemy.

@geospatial-jeff
Copy link
Collaborator

closed with #251, thanks @jonhealy1 !

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

No branches or pull requests

2 participants