-
Notifications
You must be signed in to change notification settings - Fork 3
API server crashes with OutOfMemoryError if invalid query is used #16
Comments
@al-niessner has rewritten the query parsing for ticket NASA-PDS/registry-api#457. This bug need to be tested against the rewritten parsing. |
With updates on pds-api-54 and related PR, no longer have OutOfMemoryError but still have a 500 because the grammar exception is not being mapped into an HTTP error code. |
Not any more. Parse errors are returned as HTTP errors. ANTLR interface fixed so that it does not run out of memory anymore. All work done detached for other reasons on other branches. How do we close this ticket? |
@tloubrieu-jpl how do we want to test this out? should we have @al-niessner add a test case to prove this? |
@jordanpadams I will review Al's tickets in the afternoon. I will update my postman test suite with these cases. @tdddblog should be able to use it in the integration test later. |
This bug has been corrected by syntax lexer re-engineering for ticket NASA-PDS/registry-api#457 The request now return 400 bad request |
🐛 Describe the bug
API server crashes with OutOfMemoryError if invalid query is used
📜 To Reproduce
Steps to reproduce the behavior:
title=Kaguya
in 'q' parameterjava.lang.OutOfMemeory
error.🕵️ Expected behavior
=
sign is not supported in queries.📚 Version of Software Used
0.1.0
🖥 System Info
** 🦄 Applicable requirements**
The text was updated successfully, but these errors were encountered: