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

HitsOpenSearch throws an ArrayIndexOutOfBoundsException

    Details

      Description

      LPS-47341 fixed this very same problem for PortalOpenSearchImpl, but left it unsolved for HitsOpenSearchImpl.

      Steps to reproduce:

      • Start a 6.2.x bundle
      • Create a blog entry in the default site. Make sure it contains the word "hello"
      • Deploy attached portlet (TestHitsOpenSearch)
      • Add TestHitsOpenSearch portlet to the page

      Expected result:
      Portlet shows the XML with search results

      Observed result:
      Portlet shows an error message.
      Log shows the exception:

      Caused by: com.liferay.portal.kernel.search.SearchException: java.lang.ArrayIndexOutOfBoundsException: 0
               at com.liferay.portal.kernel.search.HitsOpenSearchImpl.search(HitsOpenSearchImpl.java:212)
               at org.apache.jsp.view_jsp._jspService(view_jsp.java:265)

      Root Cause
      Same as LPS-47341

      Additional notes
      Incidentally, LPS-53730 solved this in master

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                harry.chai Harry Chai
                Reporter:
                daniel.sanz Daniel Sanz
                Participants of an Issue:
                Recent user:
                Esther Sanz
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  3 years, 47 weeks, 3 days ago

                  Packages

                  Version Package
                  6.2.X EE