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

Publishing Structured Web Content Reverts Structure to 'Default'

    Details

      Description

      The Web Content editor loses the structure when the article is saved as a draft or is published.

      Steps to Reproduce:

      1. Add a structure
      2. Add a basic web content
        • Select the structure (instead of Default)
      3. Publish (or Save as Draft)
      4. Edit the web content article
        • When the user re-enters the editor, the structure has reverted back to Default and all the previous structure data values are lost
        • If the user then re-selects the structure within the editor, a console NPE occurs:
      23:27:54,809 ERROR [http-bio-8080-exec-7][IncludeTag:206] Current URL /group/control_panel/manage?p_auth=2XFQyzcY&p_p_id=15&p_p_lifecycle=1&p_p_state=maximized&p_p_mode=view&doAsGroupId=19&refererPlid=10167&_15_struts_action=%2Fjournal%2Fedit_article generates exception: null
      23:27:54,812 ERROR [http-bio-8080-exec-7][IncludeTag:154] java.lang.NullPointerException
              at com.liferay.portlet.dynamicdatamapping.util.DDMXSDImpl.getFieldHTML(DDMXSDImpl.java:134)
              at com.liferay.portlet.dynamicdatamapping.util.DDMXSDImpl.getHTML(DDMXSDImpl.java:236)
              at com.liferay.portlet.dynamicdatamapping.util.DDMXSDImpl.getHTML(DDMXSDImpl.java:282)
              at com.liferay.portlet.dynamicdatamapping.util.DDMXSDImpl.getHTML(DDMXSDImpl.java:263)
              at com.liferay.portlet.dynamicdatamapping.util.DDMXSDUtil.getHTML(DDMXSDUtil.java:93)
              at org.apache.jsp.html.taglib.ddm.html.start_jsp._jspService(start_jsp.java:546)
              at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
              at com.liferay.portal.servlet.DirectRequestDispatcher.include(DirectRequestDispatcher.java:55)
              at com.liferay.taglib.util.IncludeTag.include(IncludeTag.java:292)
              at com.liferay.taglib.util.IncludeTag.doInclude(IncludeTag.java:200)
              at com.liferay.taglib.util.IncludeTag.doStartTag(IncludeTag.java:121)
              at com.liferay.taglib.ddm.base.BaseHTMLTag.doStartTag(BaseHTMLTag.java:30)
              at org.apache.jsp.html.portlet.journal.article.content_jsp._jspService(content_jsp.java:2687)
              at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
              at com.liferay.portal.servlet.DirectRequestDispatcher.include(DirectRequestDispatcher.java:55)
              at com.liferay.taglib.util.IncludeTag.include(IncludeTag.java:292)
              at com.liferay.taglib.util.IncludeTag.doInclude(IncludeTag.java:200)
              at com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:81)
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              joshua.robins Joshua Robins (Inactive)
              Reporter:
              joshua.robins Joshua Robins (Inactive)
              Participants of an Issue:
              Recent user:
              Marta Elicegui
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                7 years, 46 weeks, 5 days ago

                  Packages

                  Version Package
                  6.2.0 CE M3