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

Print url does not contain type of asset

    Details

    • Liferay Contributor's Agreement:
      Accept

      Description

      This results in an nullpointerexception when view_content.jsp tries to find an assetrenderer of type "" :

      java.lang.NullPointerException
      at org.apache.jsp.html.portlet.asset_005fpublisher.view_005fcontent_jsp._jspService(view_005fcontent_jsp.java:1172)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper

      The solution is to add the following to asset_print :

      printAssetURL.setParameter("type", assetRendererFactory.getType());

        Attachments

          Activity

            People

            Assignee:
            igor.spasic Igor Spasic (Inactive)
            Reporter:
            kdejaeger Koen De Jaeger (Inactive)
            Participants of an Issue:
            Recent user:
            Esther Sanz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              11 years, 5 days ago

                Packages

                Version Package
                --Sprint 12/11
                6.1.0 CE RC1