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

Insufficent validation of array search criterion parameters

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Low Low
    • Customer request
    • 4.6.7
    • None
    • None
    • Yes

    Description

      1.  Use Ibexa Experience 4.6.7 with Solr
      2. Create a Location Query with ParentLocationId criterion and pass an empty array to that criterion
        1.  or add the controller form attached file
      3. run the query (open /test route when using the attached file})

      Result
      An exception is thrown because the Solr query is invalid.

      Expected result
      An exception is thrown saying that passing an empty array to the criterion is not allowed.

      Note
      It is probably relevant for all criteria supporting arrays.
      An alternative would be to ignore such criteria when generating the query.

      Designs

        Attachments

          Activity

            People

              Unassigned Unassigned
              pawel.pawlik@ibexa.co Paweł Pawlik
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: