-
Type:
Bug
-
Status: Closed
-
Resolution: Duplicate
-
Affects Version/s: 7.0.0 CE GA1
-
Fix Version/s: 7.0.1 CE GA2
-
Component/s: Dynamic Data Mapping > Upgrades
-
Labels:
-
Fix Priority:3
-
Sprint:Sprint 14: Apr, 04 - Apr, 15
Steps to reproduce:
- Startup an instance of Portal 6.2.5
- Add a Structure with a Date field
- Add a Template based on the Structure
- Create a WC article based on the Structure
- Choose a date in the future
- Publish
- Click back in to the article, assert no errors throw when viewing it
- Shutdown the server
- Follow the upgrade instructions for the database, before starting the master instance on the same database
- Startup on the fresh master instance
- 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)
- duplicates
-
LPS-64491 DDM Templates do not upgrade to support the new Date Field Value storage format
- Closed