Uploaded image for project: 'Magnolia Shop'
  1. Magnolia Shop
  2. MSHOP-127

Product search on an empty string (or spaces only) results in a queryParser.ParseException in the log

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Neutral
    • Resolution: Fixed
    • Affects Version/s: 1.1.4
    • Fix Version/s: 1.1.5, 2.0.1
    • Labels:

      Description

      When you perform a shop product search on an empty string (or a string consisting of spaces only) an error is written to the log:
      2014-03-09 19:55:27,424 ERROR
      .magnolia.module.shop.accessors.ShopProductAccesor: Cant read Products

      caused by a org.apache.lucene.queryParser.ParseException. See the attached log file for details.

      I think the ShopProductSearchResultParagraphModel should check for empty search strings and disallow them.

        Checklists

        Acceptance criteria

          Attachments

            Activity

              People

              Assignee:
              jsimak Jaroslav Simak
              Reporter:
              edgar Edgar Vonk
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Checklists

                  Bug DoR
                  DoD