Uploaded image for project: 'Ibexa IBX'
  1. Ibexa IBX
  2. IBX-2868

Products cannot be queried via GraphQL on Solr

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 4.1.3
    • 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)"
              },
      ...
      

      Designs

        Attachments

          Activity

            People

              Unassigned Unassigned
              konrad.oboza@ibexa.co Konrad Oboza
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: