Openbravo Issue Tracking System - Openbravo ERP | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0014623 | Openbravo ERP | Y. DBSourceManager | public | 2010-09-20 17:36 | 2010-10-09 00:00 | |||||||
Reporter | marvintm | |||||||||||
Assigned To | marvintm | |||||||||||
Priority | normal | Severity | major | Reproducibility | have not tried | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | ||||||||||||
Target Version | Fixed in Version | |||||||||||
Merge Request Status | ||||||||||||
Review Assigned To | ||||||||||||
OBNetwork customer | No | |||||||||||
Web browser | ||||||||||||
Modules | Core | |||||||||||
Support ticket | ||||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0014623: export.config.script can fail with NullPointerException in the ColumnDataChange.equals() method | |||||||||||
Description | Export.config.script task can fail with the following exception: [exportconfigscript] 292870 INFO - Module added to comparison: 9301BAB94FAE486B8194B09CEC348F1D [exportconfigscript] 308848 INFO - Loading script of formal changes [exportconfigscript] java.lang.NullPointerException [exportconfigscript] at org.apache.ddlutils.alteration.ColumnDataChange.equals(ColumnDataChange.java:115) [exportconfigscript] at org.openbravo.ddlutils.task.ExportConfigScript.doExecute(ExportConfigScript.java:219) [exportconfigscript] at org.openbravo.ddlutils.task.BaseDatabaseTask.execute(BaseDatabaseTask.java:87) [exportconfigscript] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) [exportconfigscript] at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source) [exportconfigscript] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [exportconfigscript] at java.lang.reflect.Method.invoke(Method.java:597) [exportconfigscript] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [exportconfigscript] at org.apache.tools.ant.Task.perform(Task.java:348) [exportconfigscript] at org.apache.tools.ant.Target.execute(Target.java:357) [exportconfigscript] at org.apache.tools.ant.Target.performTasks(Target.java:385) This can happen if there is a change in the formalChangesScript.xml file which has a null value in the "newValue" attribute. The reason for this error is that there is a bug in the .equals() method, which doesn't take into account that the new value of a change can be null. | |||||||||||
Steps To Reproduce | -Set a sourcedata column value to null -Install a module (which doesn't modify that value) -Execute export.config.script with a template on development | |||||||||||
Proposed Solution | The equals() method of the ColumnDataChange class needs to be fixed. | |||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ||||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2010-09-20 17:36 | marvintm | New Issue | ||||||||||
2010-09-20 17:36 | marvintm | Assigned To | => marvintm | |||||||||
2010-09-20 17:36 | marvintm | OBNetwork customer | => No | |||||||||
2010-09-20 17:39 | hgbot | Checkin | ||||||||||
2010-09-20 17:39 | hgbot | Note Added: 0031241 | ||||||||||
2010-09-20 17:39 | hgbot | Status | new => resolved | |||||||||
2010-09-20 17:39 | hgbot | Resolution | open => fixed | |||||||||
2010-09-20 17:39 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/dbsm-main/rev/a711c2977e05bc216823d162c6aff53534ac618b [^] | |||||||||
2010-09-20 17:43 | hgbot | Checkin | ||||||||||
2010-09-20 17:43 | hgbot | Note Added: 0031242 | ||||||||||
2010-09-20 17:43 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/devel/dbsm-main/rev/a711c2977e05bc216823d162c6aff53534ac618b [^] => http://code.openbravo.com/erp/devel/pi/rev/cb48a6557b673574111244a99672c20408bcfd45 [^] | |||||||||
2010-09-20 22:08 | hudsonbot | Checkin | ||||||||||
2010-09-20 22:08 | hudsonbot | Note Added: 0031246 | ||||||||||
2010-10-07 10:57 | rafaroda | Relationship added | related to 0014091 | |||||||||
2010-10-08 15:18 | shuehner | Note Added: 0031691 | ||||||||||
2010-10-08 15:18 | shuehner | Status | resolved => closed | |||||||||
2010-10-09 00:00 | anonymous | sf_bug_id | 0 => 3084018 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|