-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 6.2.X EE
-
Fix Version/s: 6.2.X EE
-
Component/s: Search Infrastructure, Search Infrastructure > Framework
-
Branch Version/s:6.2.x
-
Backported to Branch:Committed
-
Fix Priority:3
-
Git Pull Request:
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