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

java.lang.ClassCastException when searching and hitting web contents and folders in Web Content Administration

    Details

      Description

      Steps to reproduce:

      1. Add a web content with title aa
      2. Publish a new version of this web content without changing anything.
      3. Add a folder with name aa
      4. Search for aa
      5. Go to the tab Versions

      Actual results:

      • A java.lang.ClassCastException is thrown:
        java.lang.ClassCastException: com.liferay.journal.model.impl.JournalFolderImpl cannot be cast to com.liferay.journal.model.JournalArticle
                at org.apache.jsp.view_005fversions_jsp._jspService(view_005fversions_jsp:483)
                at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
                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:729)
                at com.liferay.portal.osgi.web.servlet.jsp.compiler.JspServlet.service(JspServlet.java:413)
                at com.liferay.portal.osgi.web.servlet.jsp.compiler.JspServlet.service(JspServlet.java:424)
                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:117)
                at org.eclipse.equinox.http.servlet.internal.servlet.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:48)
                at com.liferay.portal.servlet.DirectServletPathRegisterDispatcher.include(DirectServletPathRegisterDispatcher.java:67)
                at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.doDispatch(ClassLoaderRequestDispatcherWrapper.java:78)
                at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.include(ClassLoaderRequestDispatcherWrapper.java:53)
                at com.liferay.taglib.util.IncludeTag.includePage(IncludeTag.java:372)
                at com.liferay.taglib.util.IncludeTag.include(IncludeTag.java:349)
                at com.liferay.taglib.util.IncludeTag.doInclude(IncludeTag.java:202)
                at com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:86)
        

      Expected result:

      • The two versions of the web content and the folder previously created appear in the list.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              lu.liu Lu Liu
              Reporter:
              daniel.couso Daniel Couso
              Participants of an Issue:
              Recent user:
              Marta Elicegui
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                3 years, 22 weeks, 4 days ago

                  Packages

                  Version Package
                  7.0.0 DXP FP18
                  7.0.3 CE GA4
                  7.0.0 DXP SP4
                  7.0.X EE
                  7.1.X
                  Master