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

Upgrading a Web Content article with a Date field throws errors

    Details

    • Fix Priority:
      3
    • Sprint:
      Sprint 14: Apr, 04 - Apr, 15

      Description

      Steps to reproduce:

      1. Startup an instance of Portal 6.2.5
      2. Add a Structure with a Date field
      3. Add a Template based on the Structure
      4. Create a WC article based on the Structure
        • Choose a date in the future
        • Publish
      5. Click back in to the article, assert no errors throw when viewing it
      6. Shutdown the server
      7. Follow the upgrade instructions for the database, before starting the master instance on the same database
      8. Startup on the fresh master instance
      9. Navigate to the article and click to view it

      Expected result:
      No console errors will throw.

      Actual result:
      The following is thrown, and no fields display:

      21:47:55,052 ERROR [http-nio-9080-exec-5][IncludeTag:128] Current URL /group/guest/~/control_panel/manage?p_p_id=com_liferay_journal_web_portlet_JournalPortlet&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&_com_liferay_journal_web_portlet_JournalPor
      tlet_mvcPath=%2Fedit_article.jsp&_com_liferay_journal_web_portlet_JournalPortlet_redirect=http%3A%2F%2Flocalhost%3A9080%2Fgroup%2Fguest%2F~%2Fcontrol_panel%2Fmanage%3Fp_p_id%3Dcom_liferay_journal_web_portlet_JournalPortlet%26p_p_lifecycle%3D0%26p_p_stat
      e%3Dmaximized%26p_p_mode%3Dview%26p_p_auth%3D2TKFEL3m&_com_liferay_journal_web_portlet_JournalPortlet_referringPortletResource=&_com_liferay_journal_web_portlet_JournalPortlet_groupId=20182&_com_liferay_journal_web_portlet_JournalPortlet_folderId=0&_com
      _liferay_journal_web_portlet_JournalPortlet_articleId=20619&_com_liferay_journal_web_portlet_JournalPortlet_version=1.0&p_p_auth=2TKFEL3m generates exception: com.liferay.portal.kernel.exception.PortalException: com.liferay.portal.kernel.template.Templa
      teException: Unable to process template com/liferay/dynamic/data/mapping/dependencies/ddm/date.ftl
      java.text.ParseException: Unparseable date: "1464652800000"
              at java.text.DateFormat.parse(DateFormat.java:357)
              at freemarker.core.JavaTemplateDateFormat.parse(JavaTemplateDateFormat.java:43)
              at freemarker.core.BuiltInsForMultipleTypes$dateBI$DateParser.parse(BuiltInsForMultipleTypes.java:185)
              at freemarker.core.BuiltInsForMultipleTypes$dateBI$DateParser.get(BuiltInsForMultipleTypes.java:160)
              at freemarker.core.DynamicKeyName.dealWithStringKey(DynamicKeyName.java:145)
              at freemarker.core.DynamicKeyName._eval(DynamicKeyName.java:73)
              at freemarker.core.Expression.eval(Expression.java:78)
              at freemarker.core.Assignment.accept(Assignment.java:131)
              at freemarker.core.Environment.visit(Environment.java:324)
              at freemarker.core.MixedContent.accept(MixedContent.java:54)
              at freemarker.core.Environment.visitByHiddingParent(Environment.java:345)
              at freemarker.core.IfBlock.accept(IfBlock.java:48)
              at freemarker.core.Environment.visit(Environment.java:324)
              at freemarker.core.MixedContent.accept(MixedContent.java:54)
              at freemarker.core.Environment.visit(Environment.java:324)
              at freemarker.core.Environment.process(Environment.java:302)
              at freemarker.template.Template.process(Template.java:325)
              at com.liferay.portal.template.freemarker.FreeMarkerTemplate.processTemplate(FreeMarkerTemplate.java:121)
              at com.liferay.portal.template.AbstractSingleResourceTemplate.processTemplate(AbstractSingleResourceTemplate.java:78)
              at com.liferay.dynamic.data.mapping.render.impl.DDMFormFieldFreeMarkerRenderer.processFTL(DDMFormFieldFreeMarkerRenderer.java:616)
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              brian.wulbern Brian Wulbern
              Reporter:
              brian.wulbern Brian Wulbern
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                4 years, 27 weeks, 4 days ago

                  Packages

                  Version Package
                  7.0.1 CE GA2