Details
-
Bug
-
Resolution: Fixed
-
Medium
-
4.1.2
-
None
-
None
Description
When Solr is configured as the search engine, querying by all products without specifying filters breaks.
Steps to reproduce:
1. Install a clean Ibexa DXP 4.1.
2. Configure Solr as your search engine.
3. Go to: your_host/admin/graphiql
4. Perform the following query:
{ products { all { edges { node { code } } } } }
5. You will be presented with the following error:
{ "errors": [ { "debugMessage": "Invalid aggregation in LogicalAnd criterion.", "message": "Internal server Error", "extensions": { "category": "internal" }, "locations": [ { "line": 3, "column": 5 } ], "path": [ "products", "all" ], "trace": [ { "file": "/Users/konradoboza/projects/v4/vendor/ibexa/solr/src/lib/Query/Common/CriterionVisitor/Aggregate.php", "line": 68, "call": "Ibexa\\Solr\\Query\\Common\\CriterionVisitor\\LogicalAnd::visit(instance of Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Query\\Criterion\\LogicalAnd, instance of Ibexa\\Solr\\Query\\Common\\CriterionVisitor\\Aggregate)" }, ...