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
Describe the bug
invalid sort parameter value leads to 500 Sever Error but should be 400 Bad Request
Caused by: java.lang.IllegalArgumentException: Invalid sortValue: -lastUpdated
at com.ibm.fhir.persistence.HistorySortOrder.of(HistorySortOrder.java:61)
at com.ibm.fhir.persistence.util.FHIRPersistenceUtil.parseSystemHistoryParameters(FHIRPersistenceUtil.java:186)
... 65 more
Environment
main
To Reproduce
invoke whole-system history with a bogus sort value; for example {{base}}/_history?_sort=bogus
Expected behavior
it should be a 400 Bad Request, not a 500.
Additional context
missed this in the description and QA for #2026
The text was updated successfully, but these errors were encountered:
* invalid sort parameter value leads to 500 server error #3274
Signed-off-by: Paul Bastide <pbastide@us.ibm.com>
* Per Code Review updating logging and messages
Signed-off-by: Paul Bastide <pbastide@us.ibm.com>
* Update persistence
Signed-off-by: Paul Bastide <pbastide@us.ibm.com>
Describe the bug
invalid sort parameter value leads to 500 Sever Error but should be 400 Bad Request
Environment
main
To Reproduce
invoke whole-system history with a bogus sort value; for example
{{base}}/_history?_sort=bogus
Expected behavior
it should be a 400 Bad Request, not a 500.
Additional context
missed this in the description and QA for #2026
The text was updated successfully, but these errors were encountered: