Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0032310 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
backport | [Openbravo ERP] A. Platform | major | have not tried | 2016-02-23 10:55 | 2016-02-24 17:32 | |||
Reporter | alostale | View Status | public | |||||
Assigned To | alostale | |||||||
Priority | immediate | Resolution | fixed | Fixed in Version | 3.0PR15Q4.4 | |||
Status | closed | Fix in branch | Fixed in SCM revision | 0d5aa309a887 | ||||
Projection | none | ETA | none | Target Version | 3.0PR15Q4.4 | |||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Review Assigned To | caristu | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Regression level | Production - QA Approved | |||||||
Regression date | 2015-07-03 | |||||||
Regression introduced in release | 3.0PR15Q4 | |||||||
Regression introduced by commit | https://code.openbravo.com/erp/devel/pi/rev/b26a24d2053e04743e90c430dc6f14098348651b [^] | |||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0032310: error on update if entity persistence observer loaded current object in memory | |||||||
Description | If an entity persistence observer loas current object in memory, an error is thrown when trying to perform an update from UI. | |||||||
Steps To Reproduce | -Add to attached OrderLineObserver.java to sources and compile -Try to edit any existent order line. -> The following error can be seen: Saving failed. a different object with the same identifier value was already associated with the session: [OrderLine#7517250EF33F451CAF1CFF9A1CA5FEC9] | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | ||||||||
|
Notes | |
(0084464) hgbot (developer) 2016-02-24 15:22 |
Repository: erp/backports/3.0PR15Q4.4 Changeset: 0d5aa309a887199363869c0a1b890d19c3b00eb9 Author: Asier Lostalé <asier.lostale <at> openbravo.com> Date: Tue Feb 23 16:37:30 2016 +0100 URL: http://code.openbravo.com/erp/backports/3.0PR15Q4.4/rev/0d5aa309a887199363869c0a1b890d19c3b00eb9 [^] fixed bug 32310: error on update if an observer loaded current object in memory In case an entity observer loaded current object in memory (ie. observing orderLine) doing orderLine.getSalesOrder().getOrderLineList() there were two different instances in memory representing the same DB row. This caused problems when trying to evict it. Causing an exception to be thrown when updating from UI in this case. As solution eviction is no longer performed, object is forced to be fetched from DB by executing a Criteria. --- M modules/org.openbravo.service.json/src/org/openbravo/service/json/DefaultJsonDataService.java --- |
(0084471) caristu (developer) 2016-02-24 17:32 |
Code review + testing OK |
Issue History | |||
Date Modified | Username | Field | Change |
2016-02-23 10:58 | alostale | Type | defect => backport |
2016-02-23 10:58 | alostale | Target Version | => 3.0PR15Q4.4 |
2016-02-24 15:05 | alostale | Review Assigned To | => caristu |
2016-02-24 15:22 | hgbot | Checkin | |
2016-02-24 15:22 | hgbot | Note Added: 0084464 | |
2016-02-24 15:22 | hgbot | Status | scheduled => resolved |
2016-02-24 15:22 | hgbot | Resolution | open => fixed |
2016-02-24 15:22 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/backports/3.0PR15Q4.4/rev/0d5aa309a887199363869c0a1b890d19c3b00eb9 [^] |
2016-02-24 17:32 | caristu | Note Added: 0084471 | |
2016-02-24 17:32 | caristu | Status | resolved => closed |
2016-02-24 17:32 | caristu | Fixed in Version | => 3.0PR15Q4.4 |
Copyright © 2000 - 2009 MantisBT Group |