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

Using "in" condition type with no items results in an exception on Elastic #135

Open
peterbanda opened this issue Jan 13, 2020 · 1 comment
Labels
bug Something isn't working Moderate Prio Should be addressed in a timely manner server Issues concerning the back end UI Issues concerning the user interface

Comments

@peterbanda
Copy link
Member

HTTP/1.1 400 Bad Request
{"error":{"root_cause":[{"type":"parsing_exception","reason":"[terms] query requires a field name, followed by array of terms or a document lookup specification","line":1,"col":37}],"type":"parsing_exception","reason":"[terms] query requires a field name, followed by array of terms or a document lookup specification","line":1,"col":37},"status":400}
@peterbanda
Copy link
Member Author

Data-access layer on the server side should return [] if any condition has an empty in-list for any data storage type (Mongo, Elastic, Ignite).

On the client/UI side this situation should be prevented by an error message or silently by removing a "erroneous" condition.

@peterbanda peterbanda added bug Something isn't working server Issues concerning the back end UI Issues concerning the user interface Moderate Prio Should be addressed in a timely manner labels Jan 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Moderate Prio Should be addressed in a timely manner server Issues concerning the back end UI Issues concerning the user interface
Projects
None yet
Development

No branches or pull requests

1 participant