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

Searching for text with an underscore "_" with an Alfresco repository will return no results and log exceptions

    Details

      Description

      Steps to reproduce:

      1) Attach an Alfresco repository to the Documents and Media portlet
      2) From the Alfresco repository, search for "doc_".
      3) No results are returned and exceptions are logged. (there should be files matching "doc_" in default Alfresco folder).

      The following exception is thrown on Liferay portal:
      13:03:41,131 ERROR [http-bio-9080-exec-5][search_resources_jsp:1622] com.liferay.portal.kernel.search.SearchException: com.liferay.portal.kernel.search.SearchException: org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException: Internal Server Error
      com.liferay.portal.kernel.search.SearchException: com.liferay.portal.kernel.search.SearchException: org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException: Internal Server Error
      at com.liferay.portlet.documentlibrary.service.impl.DLAppServiceImpl.search(DLAppServiceImpl.java:2456)
      ...

      The following exception is thrown on Alfresco server:
      2012-12-13 13:03:41,164 ERROR [solr.core.SolrCore] [http-bio-9443-exec-13] java.lang.UnsupportedOperationException: Unsupported escape pattern in <doc_> at position 4
      at org.alfresco.opencmis.search.CMISQueryParser.unescape(CMISQueryParser.java:1675)
      ...

      See attached logs for full trace.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              he.song Serena Song (Inactive)
              Reporter:
              dennis.ju Dennis Ju
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                7 years, 29 weeks ago

                  Packages

                  Version Package
                  6.1.X EE
                  6.2.0 CE RC3