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

Solr search puts empty () in the query, which is invalid syntax

Details

    Description

      Steps to Reproduce:
      On a bundle using the Solr7 connector:

      1. Go to Control Panel > Sites > Sites and Create a new Site
      2. Go to the new site
      3. Add a Widget Page to the new Site
      4. Add a Asset Publisher to the Widget Page
      5. Using the Asset Publisher create a Web Content
      6. Go to Control Panel > Sites > Sites
      7. Click on the new site's ellipsis and Deactivate
      8. Navigate to Control Panel -> Configuration -> System Settings -> Assets -> Asset Publisher and set Check Interval to 1 and Save (If nothing happens in the logs, switch it back to 0 and repeat until you see errors in the logs)

      Expected Result: No errors in logs.

      Actual Result: Receive an error in the logs

      ERROR [liferay/scheduler_dispatch-9][SolrIndexSearcher:147] java.lang.RuntimeException: org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at http://localhost:8983/solr: org.apache.solr.search.SyntaxError: Cannot parse 'visible:true +companyId:20101 +()': Encountered " ")" ") "" at line 1, column 33.Was expecting one of: <NOT> ..._ "" ..._ "-" ..._ <BAREOPER> ..._ "(" ..._ "*" ..._ <QUOTED> ..._ <TERM> ..._ <PREFIXTERM> ..._ <WILDTERM> ..._ <REGEXPTERM> ..._ "[" ..._ "{" ..._ <LPARAMS> ..._ "filter(" ..._ <NUMBER> ..._ <TERM> ..._

      Attachments

        Activity

          People

            linda.sui Linda Sui
            joshua.cords Joshua Cords
            Kiyoshi Lee Kiyoshi Lee
            Adam Brandizzi Adam Brandizzi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              2 years, 46 weeks, 1 day ago

              Packages

                Version Package
                7.1.10 DXP FP19
                7.1.10.5 SP5
                7.1.X
                7.2.10 DXP FP6
                7.2.X
                7.3.10 DXP GA1
                Master