Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
-
- Mispelled operators like group_by, order_by, limit error
-
Ghost
-
5
-
ghost-08.09.2021, ghost-22.09.2021, ghost-6.10.2021
-
Manual Test
-
Bug Fix
-
-
Needs Assessment
Description
An AST query like
curl -X POST http://localhost:8080/pdb/query/v4 -H 'Content-Type:application/json' -d '{"query": ["from", "reports", ["extract", [["function", "count", "certname"]], ["null?", "type", false], ["groupy_by", "certname"]]] }' | jq
|
should error because the operator groupy_by is misspelled.
Instead, it ignores the entire ["extract" ... filter and returns the results of the query ["from", "reports"].