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

When property "layout.types" contains legacy value "article" it generates NullPointerException

Details

    Description

      The default layout type settings for Liferay 6.1 + is like:
      layout.types=portlet,panel,embedded,url,link_to_layout

      We have moved ‘article’ type to portal-legacy-6.0.properties already, so it is supposed to work, but we will get NullPointerException when Add Applications. (This setup ("article") has been moved to portal-legacy-6.0.properties by LPS-19760)

      Steps to reproduce it:
      1. Add the property following page type in portal-ext.properties:
      layout.types=portlet,panel,embedded,article,url,link_to_layout
      2. Restart the server
      3. Click the Add > Applications

      Actual Result: We will see the following errors:
      2013-12-10 08:00:41,591 [ERROR] [tomcat-http--15] [com.liferay.taglib.util.IncludeTag:?] Current URL /user/lfadmin/home?p_p_id=145&p_p_lifecycle=0&p_p_state=exclusive&p_p_mode=view&145_viewEntries=true&_145_stateMaximized=false&_145_struts_action=%2Fdockbar%2Fadd_panel generates exception: An exception occurred processing JSP page /html/portal/layout/edit/article.jsp at line 2017: <%@ include file="/html/portal/layout/edit/init.jsp" %>_18: _19: <%_20: UnicodeProperties typeSettingsProperties = selLayout.getTypeSettingsProperties();_21: _22: String articleId = typeSettingsProperties.getProperty("article-id", StringPool.BLANK);_23: %>__Stacktrace: [Sanitized]
      java.lang.NullPointerException
      at org.apache.jsp.html.portal.layout.edit.article_jsp._jspService(article_jsp.java:519)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)

      Full log is attached.

      Attachments

        Issue Links

          Activity

            People

              tibor.lipusz Tibor Lipusz
              vincent.liu Vincent Liu
              Kiyoshi Lee Kiyoshi Lee
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                8 years, 47 weeks, 4 days ago

                Packages

                  Version Package
                  6.2.X EE
                  7.0.0 M3