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

Solr ClientException is unhandled when using Criterion\ContentId() with empty array

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • 4.2.2
    • Search
    • None

    Description

      Steps to reproduce:

      • build a content Query
      • [optional] use the query with ContentSearchAdapter for Pagerfanta
      • add filter of \Ibexa\Contracts\Core\Repository\Values\Content\Query\Criterion\ContentId type and pass empty array as an constructor argument
      • try to execute query by calling findContent method of SearchService

       

      Result:

      An unhandled, raw HttpClient exception is thrown and propagated to the top of execution stack:

      ClientException                    
      HTTP/1.1 404 Not Found returned for "http://127.0.0.1:30001/solr/solr/collection1/select". 

       

      Expected result:

      An empty list of results is returned.

      Designs

        Attachments

          Activity

            People

              Unassigned Unassigned
              kamil.madejski@ibexa.co Kamil Madejski
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: