PUBLIC - Liferay Portal Community Edition
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-32756

Unable to translate Web Content when repeatable field is added to the default language

    Details

    • Story Points:
      6
    • Similar Issues:
      Show 5 results 

      Description

      Steps to reproduce:

      1. Add a structure with a repeatable field
      2. Add template for that structure
      3. Add a web content for that structure and repeat the field a couple times
      4. Save the web content
      5. Add a translation

      The translation popup shows up blank

        Issue Links

          Activity

          Hide
          Mark Jin added a comment - - edited

          FAILED Manual Testing using the following steps:

          1. Go to control panel => Web Content.
          2. Click manage drop menu => click structures.
            1. Click add button.
            2. Fill name and description.
            3. Drag and drop some fields to white space [Text and Text Box].
            4. Checkpoint: the translate is US.
            5. Back.
            6. Go to manage templates.
            7. Click add button.
            8. Fill name and description and script.
            9. Save.
          3. Close the pop-up page.
          4. Create new web content based the structure.
            1. Fill title and the fields.
            2. Edit the content add new tranclation [china].
            3. Save.
          5. Back to liferay.
          6. Add WCD and Language portlet to new page.
          7. Select the newly content on WCD portlet.
          8. Change the language to chinese.

          Reproduced on:
          Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: 53636bfc291deb1671b751d758bf3831f1f00338.

          Users unable to add new translate, cause error message like:
          Web Content is temporarily unavailable.

          01:43:00,980 ERROR [http-bio-9080-exec-10][render_portlet_jsp:154] java.lang.NullPointerException
          at com.liferay.portlet.dynamicdatamapping.storage.Field.getValue(Field.java:168)
          at com.liferay.portlet.dynamicdatamapping.storage.Field.getValue(Field.java:162)
          at com.liferay.portlet.journal.util.JournalConverterUtil.countFieldRepetition(JournalConverterUtil.java:160)
          at com.liferay.portlet.journal.util.JournalConverterUtil.getXML(JournalConverterUtil.java:100)
          at com.liferay.portlet.journal.action.EditArticleAction.updateArticle(EditArticleAction.java:616)
          at com.liferay.portlet.journal.action.EditArticleAction.processAction(EditArticleAction.java:144)
          at com.liferay.portal.struts.PortletRequestProcessor.process(PortletRequestProcessor.java:171)
          at com.liferay.portlet.StrutsPortlet.processAction(StrutsPortlet.java:214)
          at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:70)
          at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:48)
          at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:554)
          at com.liferay.portlet.InvokerPortletImpl.invokeAction(InvokerPortletImpl.java:585)
          at com.liferay.portlet.InvokerPortletImpl.processAction(InvokerPortletImpl.java:295)
          at com.liferay.portlet.PortletContainerImpl._doProcessAction(PortletContainerImpl.java:517)
          at com.liferay.portlet.PortletContainerImpl.processAction(PortletContainerImpl.java:115)
          at com.liferay.portlet.RestrictPortletContainerWrapper.processAction(RestrictPortletContainerWrapper.java:73)
          at com.liferay.portal.kernel.portlet.PortletContainerUtil.processAction(PortletContainerUtil.java:114)
          at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:356)
          at com.liferay.portal.action.LayoutAction.doExecute(LayoutAction.java:179)
          at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:81)

          Failed on:
          Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: 39625055e78c595c1dfdd95e84d46d7fd4f1832c.

          Unable to translate web content. The content still is english.
          Also when I want to edit the content, cause NullPointerException.

          Show
          Mark Jin added a comment - - edited FAILED Manual Testing using the following steps: Go to control panel => Web Content. Click manage drop menu => click structures. Click add button. Fill name and description. Drag and drop some fields to white space [Text and Text Box] . Checkpoint: the translate is US. Back. Go to manage templates. Click add button. Fill name and description and script. Save. Close the pop-up page. Create new web content based the structure. Fill title and the fields. Edit the content add new tranclation [china] . Save. Back to liferay. Add WCD and Language portlet to new page. Select the newly content on WCD portlet. Change the language to chinese. Reproduced on: Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: 53636bfc291deb1671b751d758bf3831f1f00338. Users unable to add new translate, cause error message like: Web Content is temporarily unavailable. 01:43:00,980 ERROR [http-bio-9080-exec-10] [render_portlet_jsp:154] java.lang.NullPointerException at com.liferay.portlet.dynamicdatamapping.storage.Field.getValue(Field.java:168) at com.liferay.portlet.dynamicdatamapping.storage.Field.getValue(Field.java:162) at com.liferay.portlet.journal.util.JournalConverterUtil.countFieldRepetition(JournalConverterUtil.java:160) at com.liferay.portlet.journal.util.JournalConverterUtil.getXML(JournalConverterUtil.java:100) at com.liferay.portlet.journal.action.EditArticleAction.updateArticle(EditArticleAction.java:616) at com.liferay.portlet.journal.action.EditArticleAction.processAction(EditArticleAction.java:144) at com.liferay.portal.struts.PortletRequestProcessor.process(PortletRequestProcessor.java:171) at com.liferay.portlet.StrutsPortlet.processAction(StrutsPortlet.java:214) at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:70) at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:48) at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:554) at com.liferay.portlet.InvokerPortletImpl.invokeAction(InvokerPortletImpl.java:585) at com.liferay.portlet.InvokerPortletImpl.processAction(InvokerPortletImpl.java:295) at com.liferay.portlet.PortletContainerImpl._doProcessAction(PortletContainerImpl.java:517) at com.liferay.portlet.PortletContainerImpl.processAction(PortletContainerImpl.java:115) at com.liferay.portlet.RestrictPortletContainerWrapper.processAction(RestrictPortletContainerWrapper.java:73) at com.liferay.portal.kernel.portlet.PortletContainerUtil.processAction(PortletContainerUtil.java:114) at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:356) at com.liferay.portal.action.LayoutAction.doExecute(LayoutAction.java:179) at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:81) Failed on: Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: 39625055e78c595c1dfdd95e84d46d7fd4f1832c. Unable to translate web content. The content still is english. Also when I want to edit the content, cause NullPointerException.
          Hide
          Mark Jin added a comment -

          No Longer Reproducible through Manual Testing following the steps in the description.

          Reproduced on:
          Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: 53636bfc291deb1671b751d758bf3831f1f00338.

          The translation popup shows up blank and tomcat throw NullPointerException.

          No Longer Reproducible on:
          Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: da85f105a106f8c2b672b85c41d4b20221bf8fdc.

          Users able to add translate.

          Show
          Mark Jin added a comment - No Longer Reproducible through Manual Testing following the steps in the description. Reproduced on: Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: 53636bfc291deb1671b751d758bf3831f1f00338. The translation popup shows up blank and tomcat throw NullPointerException. No Longer Reproducible on: Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: da85f105a106f8c2b672b85c41d4b20221bf8fdc. Users able to add translate.
          Hide
          Sophia Zhang added a comment -

          4 pts for failed manual testing + 2 pts retest it = 6 pts

          Show
          Sophia Zhang added a comment - 4 pts for failed manual testing + 2 pts retest it = 6 pts

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 11 weeks, 4 days ago

                Development

                  Structure Helper Panel