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

Theme - Script CDATA inside <setting> element in liferay-look-and-feel.xml generates NullPointerException

    Details

      Description

      === Steps to reproduce

      1- Create a new theme & replace its liferay-look-and-feel.xml with the one attached
      (Alternatively, deploy the attached theme. It works fine on 6.2.x as well)
      2- Log in & add a new page e.g. called "p1" to Liferay site
      3- Go to Dockbar/Admin/Site Administration (or Manage/Page in versions 6.1*)
      4- Select Public Pages, Look and Feel & select theme "Test" >>> Save

      >>> At this point, an alert dialog will be displayed (that is defined in the liferay-look-and-feel.xml of the theme). That's correct.

      5- Select page "p1" >>> Exception occurs in the log:

      07:31:18,685 ERROR [http-bio-8001-exec-10][IncludeTag:198] Current URL /group/control_panel/manage?p_p_auth=K15i8dPL&p_p_id=156&p_p_lifecycle=2&p_p_state=maximized&p_p_mode=view&p_p_cacheability=cacheLevelPage&doAsGroupId=10181&refererPlid=10184&controlPanelCategory=current_site&_156_treeId=layoutsTree&_156_groupId=10181&_156_tabs1=public-pages&_156_viewLayout=true&_156_struts_action=%2Fgroup_pages%2Fedit_layouts&_156_selPlid=10447&_156_historyKey= generates exception: null
      07:31:18,708 ERROR [http-bio-8001-exec-10][IncludeTag:157] java.lang.NullPointerException
      	at org.apache.jsp.html.portlet.layouts_005fadmin.look_005fand_005ffeel_005fthemes_jsp._jspService(look_005fand_005ffeel_005fthemes_jsp.java:1243)
      	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
      	at com.liferay.portal.servlet.DirectRequestDispatcher.include(DirectRequestDispatcher.java:57)
      	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.include(IncludeTag.java:295)
      	at com.liferay.taglib.util.IncludeTag.doInclude(IncludeTag.java:192)
      	at com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:82)
      	at org.apache.jsp.html.portlet.layouts_005fadmin.layout.look_005fand_005ffeel_jsp._jspx_meth_liferay_002dutil_005finclude_005f1(look_005fand_005ffeel_jsp.java:1133)
      	at org.apache.jsp.html.portlet.layouts_005fadmin.layout.look_005fand_005ffeel_jsp._jspService(look_005fand_005ffeel_jsp.java:800)
      	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
      	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
      	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
      	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:73)
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              pani.gui Pani Gui (Inactive)
              Reporter:
              tibor.lipusz Tibor Lipusz
              Participants of an Issue:
              Recent user:
              Marta Elicegui
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                8 years, 21 weeks, 1 day ago

                  Packages

                  Version Package
                  6.1.X EE
                  6.2.0 CE B1