Anonymous | Login
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformmajorhave not tried2014-11-24 16:322014-12-30 23:26
ReporteraaroncaleroView Statuspublic 
Assigned ToAugustoMauch 
PriorityimmediateResolutionfixedFixed in Version3.0PR15Q1
StatusclosedFix in branchFixed in SCM revision2c2841f894b4
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned ToAugustoMauch
Web browser
Regression levelCoding ( Testing )
Regression date2014-11-18
Regression introduced in releasepi
Regression introduced by commit [^]
Triggers an Emergency PackNo

0028265: Fields defined as DateTime with a default value @#Date@ don't work

DescriptionFields defined as DateTime with a default value @#Date@ don't work. When trying to create a new record with such a field in it, an exception is raised [1] and the DateTime field is left empty.

[1] Exception in eclipse console/Openbravo.log:
2014-11-24 16:15:48,079 [ajp-localhost%2F127.0.0.1-8809-3] ERROR org.openbravo.base.exception.OBException - Exception when parsing date
java.text.ParseException: Unparseable date: "Mon Nov 24 16:15:48 CET 2014"
    at java.text.DateFormat.parse(
    at org.openbravo.client.kernel.reference.DateTimeUIDefinition.convertLocalTimeToUTC(
    at org.openbravo.client.kernel.reference.DateTimeUIDefinition.convertToClassicString(
    at org.openbravo.client.kernel.reference.UIDefinition.setNOWDefault(
    at org.openbravo.client.kernel.reference.UIDefinition.getFieldProperties(
    at org.openbravo.client.application.window.FormInitializationComponent.computeColumnValues(
    at org.openbravo.client.application.window.FormInitializationComponent.execute(
    at org.openbravo.client.kernel.BaseActionHandler.execute(
    at org.openbravo.client.kernel.KernelServlet.processActionRequest(
    at org.openbravo.client.kernel.KernelServlet.doGet(
    at org.openbravo.client.kernel.KernelServlet.doPost(
    at javax.servlet.http.HttpServlet.service(
    at org.openbravo.base.HttpBaseServlet.serviceInitialized(
    at org.openbravo.base.secureApp.HttpSecureAppServlet.service(
    at org.openbravo.client.kernel.BaseKernelServlet.callServiceInSuper(
    at org.openbravo.client.kernel.BaseKernelServlet.service(
    at org.openbravo.client.kernel.KernelServlet.service(
    at javax.servlet.http.HttpServlet.service(
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(
    at org.openbravo.utils.SessionExpirationFilter.doFilter(
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(
    at org.openbravo.utils.CharsetFilter.doFilter(
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(
    at org.openbravo.client.kernel.KernelFilter$1.doAction(
    at org.openbravo.client.kernel.KernelFilter.doFilter(
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(
    at org.openbravo.dal.core.DalRequestFilter$1.doAction(
    at org.openbravo.dal.core.DalRequestFilter.doFilter(
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(
    at org.apache.catalina.core.StandardWrapperValve.invoke(
    at org.apache.catalina.core.StandardContextValve.invoke(
    at org.apache.catalina.core.StandardHostValve.invoke(
    at org.apache.catalina.valves.ErrorReportValve.invoke(
    at org.apache.catalina.core.StandardEngineValve.invoke(
    at org.apache.catalina.connector.CoyoteAdapter.service(
    at org.apache.coyote.ajp.AjpAprProcessor.process(
    at org.apache.coyote.ajp.AjpAprProtocol$AjpConnectionHandler.process(
Steps To ReproduceSteps to Reproduce:
Go to [^]
Login as Openbravo/openbravo
Switch to White Valley Group Admin role
Go to the Assortment window.
Select an existing assortment, go to the Product tab and create a new record there.
Check the end of the log ( [^]) and see the exception
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
caused by defect 00276283.0PR15Q1 closedAugustoMauch Some DateTime fields are not converted to the proper timezone 

-  Notes
hgbot (developer)
2014-11-25 15:46

Repository: erp/devel/pi
Changeset: 2c2841f894b42fdf358281c2d13af06452c788d6
Author: Augusto Mauch <augusto.mauch <at>>
Date: Tue Nov 25 15:44:05 2014 +0100
URL: [^]

Fixes issue 28265, fixes issue 27628: Prevents exception when parsing date

Instead of converting the date to String and then parsing it back to Date, just pass the Date object as a parameter to the convertLocalTimeToUTC method

M modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/reference/
AugustoMauch (developer)
2014-11-25 16:43

Code reviewed and verified in pi@d8acdd64b6bf
hudsonbot (developer)
2014-12-30 23:26

A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: [^]
Maturity status: Test

- Issue History
Date Modified Username Field Change
2014-11-24 16:32 aaroncalero New Issue
2014-11-24 16:32 aaroncalero Assigned To => AugustoMauch
2014-11-24 16:32 aaroncalero Modules => Core
2014-11-24 16:32 aaroncalero Triggers an Emergency Pack => No
2014-11-24 18:27 alostale Regression level => Coding ( Testing )
2014-11-24 18:27 alostale Regression introduced in release => pi
2014-11-24 18:27 alostale Priority normal => immediate
2014-11-25 12:51 AugustoMauch Regression date => 2014-11-18
2014-11-25 12:51 AugustoMauch Regression introduced by commit => [^]
2014-11-25 12:51 AugustoMauch Relationship added caused by 0027628
2014-11-25 15:46 hgbot Checkin
2014-11-25 15:46 hgbot Note Added: 0071997
2014-11-25 15:46 hgbot Status new => resolved
2014-11-25 15:46 hgbot Resolution open => fixed
2014-11-25 15:46 hgbot Fixed in SCM revision => [^]
2014-11-25 16:43 AugustoMauch Review Assigned To => AugustoMauch
2014-11-25 16:43 AugustoMauch Note Added: 0072001
2014-11-25 16:43 AugustoMauch Status resolved => closed
2014-11-25 16:43 AugustoMauch Fixed in Version => 3.0PR15Q1
2014-12-30 23:26 hudsonbot Checkin
2014-12-30 23:26 hudsonbot Note Added: 0073138

Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker