Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0025862 | Openbravo ERP | A. Platform | public | 2014-02-27 18:45 | 2014-03-15 16:13 |
|
Reporter | caristu | |
Assigned To | alostale | |
Priority | immediate | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | 3.0MP30.3 | |
Target Version | | Fixed in Version | 3.0PR14Q2 | |
Merge Request Status | |
Review Assigned To | shankarb |
OBNetwork customer | |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | Production - Confirmed Stable |
Regression date | 2013-07-19 |
Regression introduced in release | |
Regression introduced by commit | https://code.openbravo.com/erp/devel/pi/rev/7d6d644b9b9e3b9ca55c7be357af7bb86a257263 [^] |
Triggers an Emergency Pack | No |
|
Summary | 0025862: get_computedColumns() method returns null under some circumstances |
Description | get_computedColumns() method of the generated classes returns null under some circumstances, this causes a null pointer exception in the getName() of the classes related to tables that have computed columns.
For example, the following code throws the exception, when trying to convert the a new instantiated object into JSONObject:
Order myOrder = OBProvider.getInstance().get(Order.class);
DataToJsonConverter toJsonConverter = OBProvider.getInstance().get(
DataToJsonConverter.class);
JSONObject json = toJsonConverterr.toJsonObject(myOrder, DataResolvingMode.FULL); |
Steps To Reproduce | In Description |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | design defect | 0024104 | 3.0MP27 | closed | alostale | Unnecessary evaluation of computed columns | related to | defect | 0025773 | | closed | alostale | Error thrown in web services if the request includes a field that references a computed column |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2014-02-27 18:45 | caristu | New Issue | |
2014-02-27 18:45 | caristu | Assigned To | => AugustoMauch |
2014-02-27 18:45 | caristu | Modules | => Core |
2014-02-27 18:45 | caristu | Triggers an Emergency Pack | => No |
2014-02-27 18:45 | caristu | Issue Monitored: networkb | |
2014-02-27 18:46 | caristu | Regression level | => Production - Confirmed Stable |
2014-02-27 18:46 | caristu | Regression introduced by commit | => https://code.openbravo.com/erp/devel/pi/rev/7d6d644b9b9e3b9ca55c7be357af7bb86a257263 [^] |
2014-02-27 18:46 | caristu | version | => 3.0MP30.3 |
2014-03-03 09:02 | alostale | Assigned To | AugustoMauch => alostale |
2014-03-03 09:02 | alostale | Relationship added | related to 0024104 |
2014-03-03 09:10 | alostale | Severity | major => minor |
2014-03-03 09:10 | alostale | Note Added: 0064706 | |
2014-03-03 09:11 | alostale | Note Added: 0064707 | |
2014-03-03 09:35 | hgbot | Checkin | |
2014-03-03 09:35 | hgbot | Note Added: 0064708 | |
2014-03-03 09:35 | hgbot | Status | new => resolved |
2014-03-03 09:35 | hgbot | Resolution | open => fixed |
2014-03-03 09:35 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/3cdbbbf58782679e31fba0d2bf1df2ab8ce8cfa7 [^] |
2014-03-03 09:35 | hgbot | Checkin | |
2014-03-03 09:35 | hgbot | Note Added: 0064709 | |
2014-03-03 09:41 | hgbot | Checkin | |
2014-03-03 09:41 | hgbot | Note Added: 0064710 | |
2014-03-03 09:41 | alostale | Review Assigned To | => shankarb |
2014-03-03 09:58 | alostale | Relationship added | related to 0025773 |
2014-03-03 10:38 | alostale | Regression date | => 2013-07-19 |
2014-03-03 17:38 | hudsonbot | Checkin | |
2014-03-03 17:38 | hudsonbot | Note Added: 0064760 | |
2014-03-03 17:38 | hudsonbot | Checkin | |
2014-03-03 17:38 | hudsonbot | Note Added: 0064761 | |
2014-03-03 17:38 | hudsonbot | Checkin | |
2014-03-03 17:38 | hudsonbot | Note Added: 0064762 | |
2014-03-15 16:13 | shankarb | Note Added: 0065191 | |
2014-03-15 16:13 | shankarb | Status | resolved => closed |
2014-03-15 16:13 | shankarb | Fixed in Version | => PR14Q2 |
Notes |
|
|
Regression present since mp27 |
|
|
|
It fails when trying to convert to json a newly created object that has not already been persisted in db. |
|
|
(0064708)
|
hgbot
|
2014-03-03 09:35
|
|
Repository: erp/devel/pi
Changeset: 3cdbbbf58782679e31fba0d2bf1df2ab8ce8cfa7
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Mon Mar 03 09:30:34 2014 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/3cdbbbf58782679e31fba0d2bf1df2ab8ce8cfa7 [^]
fixed bug 25862: NPE serializing to JSON a non persisted Order
Computed columns is null when object is not persisted yet, it should return
null instead of failing
---
M src/org/openbravo/base/gen/entity.ftl
---
|
|
|
(0064709)
|
hgbot
|
2014-03-03 09:35
|
|
Repository: erp/devel/pi
Changeset: e7a2966e5278e9c112b8aea700275d62970569dc
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Mon Mar 03 09:35:08 2014 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/e7a2966e5278e9c112b8aea700275d62970569dc [^]
related to bug 25862: added test case
---
M modules/org.openbravo.service.json/src/org/openbravo/service/json/DataToJsonConverter.java
M src-test/org/openbravo/test/dal/ComputedColumnsTest.java
---
|
|
|
(0064710)
|
hgbot
|
2014-03-03 09:41
|
|
|
|
|
|
|
|
|
|
|
|
|
(0065191)
|
shankarb
|
2014-03-15 16:13
|
|
Code reviewed and verified in pi changeset 09baf685138e. |
|