Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-37548

The user doesn't get information about that the "*" not allowed as first character in WildcardQuery

Details

    • 2
    • Regression Bug

    Description

      Reproduction steps:
      1. Add a Blogs portlet to your page.
      2. Add a few blog entries.
      3. Fill out the Search Entries field: "*blog", then click on Search.
      4. You get all of the blogs you have created. Why?
      Check the server log:
      "14:33:07,862 ERROR [http-bio-8080-exec-8][LuceneHelperImpl:257] org.apache.lucene.queryParser.ParseException: Cannot parse 'blog': '' or '?' not allowed as first character in WildcardQuery
      org.apache.lucene.queryParser.ParseException: Cannot parse 'blog': '' or '?' not allowed as first character in WildcardQuery
      at org.apache.lucene.queryParser.QueryParser.parse(QueryParser.java:211)"

      Unfortunately, the user will not see this information, so please create a message dialog, what says that the "*" not allowed as first character.

      Attachments

        Issue Links

          Activity

            People

              jonathan.mccann Jonathan McCann
              gabor.kovacs Gabor Kovacs
              Marta Elicegui Marta Elicegui
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                9 years, 23 weeks, 1 day ago

                Packages

                  Version Package
                  6.1.X EE
                  6.2.0 CE B1