Uploaded image for project: 'Periscope'
  1. Periscope
  2. MGNLPER-136

SearchResultSupplier fills logs with exceptions when user searches for string starting with slash "/" (eg path)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 1.2.2
    • 1.2.1

      when user enters string in a find bar that starts with slash, such as path, the search results in no results being displayed and exceptions are printed in the logs.

      info.magnolia.periscope.search.SearchException: javax.jcr.query.InvalidQueryException: '/' not allowed in name
      
      	at info.magnolia.periscope.search.jcr.JcrSearchResultSupplier.search(JcrSearchResultSupplier.java:133)
      	at info.magnolia.periscope.search.jcr.JcrSearchResultSupplierTest.pathSearch(JcrSearchResultSupplierTest.java:192)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	Caused by: javax.jcr.query.InvalidQueryException: '/' not allowed in name
      	at org.apache.jackrabbit.spi.commons.query.qom.QueryObjectModelFactoryImpl.checkPropertyName(QueryObjectModelFactoryImpl.java:1034)
      	at org.apache.jackrabbit.spi.commons.query.qom.QueryObjectModelFactoryImpl.propertyExistence(QueryObjectModelFactoryImpl.java:481)
      	at info.magnolia.periscope.search.jcr.JcrSearchResultSupplier.runQuery(JcrSearchResultSupplier.java:165)
      	at info.magnolia.periscope.search.jcr.JcrSearchResultSupplier.search(JcrSearchResultSupplier.java:129)
      	... 28 more
      
      

        Acceptance criteria

              had Jan Haderka
              had Jan Haderka
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - Not Specified
                    Not Specified
                    Logged:
                    Time Spent - 1h 34m
                    1h 34m