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

pgstac returns 500 instead of 400 for several invalid datetime values #258

Closed
philvarner opened this issue Sep 8, 2021 · 0 comments
Closed
Assignees
Labels
spec Compliance with STAC/OGC specifications

Comments

@philvarner
Copy link
Collaborator

Invalid datetime values should return a 400. These return a 500 instead of 400.

  • Search with datetime=37-01-01T12:00:27.87Z returned status code 500 instead of 400
  • Search with datetime=1985-13-12T23:20:50.52Z returned status code 500 instead of 400
  • Search with datetime=1985-12-32T23:20:50.52Z returned status code 500 instead of 400
  • Search with datetime=1985-12-01T25:20:50.52Z returned status code 500 instead of 400
  • Search with datetime=1985-12-01T00:60:50.52Z returned status code 500 instead of 400
  • Search with datetime=1985-12-01T00:06:61.52Z returned status code 500 instead of 400
  • Search with datetime=1990-12-31T23:59:61Z returned status code 500 instead of 400
  • Search with datetime=1986-04-12T23:20:50.52Z/1985-04-12T23:20:50.52Z returned status code 500 instead of 400
@moradology moradology self-assigned this Dec 7, 2021
@moradology moradology added the spec Compliance with STAC/OGC specifications label Dec 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
spec Compliance with STAC/OGC specifications
Projects
None yet
Development

No branches or pull requests

3 participants