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

Editing any content from Search Results portlet causes ClassCastException

    Details

      Description

      Steps to reproduce:

      1. Add a Web Content Article/Documents Media/any asset editable from search results
      2. Perform search for the asset using the new search portlet
      3. Click on result
      4. Click edit
      5. Publish

      Expected Result: Asset is published correctly.

      Actual Result: Save happens successfully however ClassCastException occurs.

      2018-05-10 21:56:02.244 ERROR [http-nio-8080-exec-2][render_portlet_jsp:131] null
      java.lang.ClassCastException: com.liferay.portal.search.web.internal.search.results.portlet.SearchResultsPortletDisplayContext cannot be cast to com.liferay.portal.search.web.internal.display.context.SearchDisplayContext
      	at org.apache.jsp.edit_005fcontent_005fredirect_jsp._jspService(edit_005fcontent_005fredirect_jsp.java:259)
      	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
      	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:411)
      	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473)
      	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:377)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
      	at com.liferay.portal.osgi.web.servlet.jsp.compiler.internal.JspServlet.service(JspServlet.java:345)
      	at com.liferay.portal.osgi.web.servlet.jsp.compiler.internal.JspServlet.service(JspServlet.java:356)
      	at org.eclipse.equinox.http.servlet.internal.registration.EndpointRegistration.service(EndpointRegistration.java:153)
      	at org.eclipse.equinox.http.servlet.internal.servlet.ResponseStateHandler.processRequest(ResponseStateHandler.java:62)
      	at org.eclipse.equinox.http.servlet.internal.context.DispatchTargets.doDispatch(DispatchTargets.java:118)
      	at org.eclipse.equinox.http.servlet.internal.servlet.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:48)
      	at com.liferay.portlet.PortletRequestDispatcherImpl.dispatch(PortletRequestDispatcherImpl.java:282)
      	at com.liferay.portlet.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:124)
      	at com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet.include(MVCPortlet.java:594)
      	at com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet.include(MVCPortlet.java:610)
      	at com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet.doDispatch(MVCPortlet.java:494)
      	at javax.portlet.GenericPortlet.render(GenericPortlet.java:262)
      	at com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet.render(MVCPortlet.java:317

      Reproduced on:
      Tomcat 9.0.6 + MySQL 5.7.22
      Portal Master Git SHA: a325e4972254f079971f8abf48d19467d64c3051

      This does not happen on 7.0.x or with the classic search portlet.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                brian.lee Brian Lee
                Reporter:
                brian.lee Brian Lee
                Participants of an Issue:
                Recent user:
                Jason Pince
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  1 year, 28 weeks, 3 days ago

                  Packages

                  Version Package
                  7.1.0 Beta 2
                  7.1.X
                  Master