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

Edit WC cause exception when the structure contains radio field.

    Details

    • Type: Regression Bug
    • Status: Closed
    • Resolution: Duplicate
    • Affects Version/s: 7.0.0 M3
    • Fix Version/s: 7.0.0 M3
    • Component/s: Dynamic Data Mapping
    • Labels:
      None
    • Story Points:
      4
    • Fix Priority:
      3

      Description

      1. Add Web Content Display to a page.
      2. Click Add -> Select Structure -> Add a Structure with radio -> Add a template.
      3. Add a web content -> Edit.

      Expected result:
      There should no exception in the console.

      Actual result:
      Exceptions displays in the console.

      07:46:08,424 ERROR [http-bio-8080-exec-10][IncludeTag:129] Current URL /web/guest/home?p_p_auth=TPmitBr9&p_p_id=15&p_p_lifecycle=0&p_p_state=pop_up&p_p_mode=view&p_p_col_id=column-1&_15_groupId=10183&_15_showHeader=false&_15_redirect=http%3A%2F%2Flocalhost%3A8080%2Fweb%2Fguest%2Fhome%3Fp_p_id%3D56_I
      NSTANCE_6qmiuzsfV700%26p_p_lifecycle%3D0%26p_p_state%3Dpop_up%26p_p_mode%3Dview%26p_p_col_id%3Dcolumn-1%26_56_INSTANCE_6qmiuzsfV700_struts_action%3D%252Fjournal_content%252Fadd_asset_redirect%26_56_INSTANCE_6qmiuzsfV700_referringPortletResource%3D56_INSTANCE_6qmiuzsfV700&_15_struts_action=%2Fjournal
      %2Fedit_article&_15_articleId=10495&_15_version=1.0 generates exception: 1
      java.lang.ArrayIndexOutOfBoundsException: 1
              at com.liferay.portlet.dynamicdatamapping.util.DDMXSDImpl.countFieldRepetition(DDMXSDImpl.java:578)
              at com.liferay.portlet.dynamicdatamapping.util.DDMXSDImpl.getFieldHTML(DDMXSDImpl.java:146)
              at com.liferay.portlet.dynamicdatamapping.util.DDMXSDImpl.getHTML(DDMXSDImpl.java:251)
              at com.liferay.portlet.dynamicdatamapping.util.DDMXSDImpl.getFieldHTML(DDMXSDImpl.java:162)
              at com.liferay.portlet.dynamicdatamapping.util.DDMXSDImpl.getHTML(DDMXSDImpl.java:251)
              at com.liferay.portlet.dynamicdatamapping.util.DDMXSDImpl.getHTML(DDMXSDImpl.java:310)
              at com.liferay.portlet.dynamicdatamapping.util.DDMXSDUtil.getHTML(DDMXSDUtil.java:112)
              at org.apache.jsp.html.taglib.ddm.html.start_jsp._jspService(start_jsp.java:654)
              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.doStartTag(IncludeTag.java:123)
              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:2610)
              at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
      
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  5 years, 40 weeks ago

                  Packages

                  Version Package
                  7.0.0 M3