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

OpenSearch generates ArrayIndexOutOfBoundsException for custom classes

    Details

    • Liferay Contributor's Agreement:
      Accept

      Description

      To reproduce problem:

      • Implement own XXXOpenSearchImpl extends HitsOpenSearchImpl
      • Add this class into liferay-portlet.xml - tags <open-search-class>, <indexer-class>
      • Add search portlet on some page
      • Check "DIspay Open Search Results"

      Then you do search you will get:

      Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
      at com.liferay.portal.kernel.search.HitsImpl.snippet(HitsImpl.java:194)
      at com.liferay.portal.kernel.search.HitsOpenSearchImpl.search(HitsOpenSearchImpl.java:146)

      This bug is similar to LPS-47341 but reproduced for custom assets.

        Attachments

          Activity

            People

            • Assignee:
              support-lep@liferay.com SE Support
              Reporter:
              akakunin Alexey Kakunin
              Participants of an Issue:
              Recent user:
              Esther Sanz
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

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

                Packages

                Version Package