Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0032308 | Openbravo ERP | A. Platform | public | 2016-02-23 10:55 | 2016-03-17 10:56 |
|
Reporter | alostale | |
Assigned To | alostale | |
Priority | immediate | Severity | major | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | 3.0PR16Q2 | |
Merge Request Status | |
Review Assigned To | caristu |
OBNetwork customer | |
Web browser | |
Modules | Core |
Support ticket | |
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 | 0032308: 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] |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | depends on | backport | 0032309 | 3.0PR16Q1 | closed | alostale | error on update if entity persistence observer loaded current object in memory | depends on | backport | 0032310 | 3.0PR15Q4.4 | closed | alostale | error on update if entity persistence observer loaded current object in memory | caused by | defect | 0030308 | 3.0PR15Q4 | closed | caristu | Use get instead of refresh when saving or updating a record | related to | defect | 0035060 | | closed | alostale | EntityPersistanceEventObservers are executed twice on commitAndClose |
|
Attached Files | OrderLineObserver.java (984) 2016-02-23 11:08 https://issues.openbravo.com/file_download.php?file_id=9089&type=bug |
|
Issue History |
Date Modified | Username | Field | Change |
2016-02-23 10:55 | alostale | New Issue | |
2016-02-23 10:55 | alostale | Assigned To | => platform |
2016-02-23 10:55 | alostale | Modules | => Core |
2016-02-23 10:55 | alostale | Triggers an Emergency Pack | => No |
2016-02-23 10:57 | alostale | Regression level | => Production - QA Approved |
2016-02-23 10:57 | alostale | Regression date | => 2015-07-03 |
2016-02-23 10:57 | alostale | Regression introduced in release | => 3.0PR15Q4 |
2016-02-23 10:57 | alostale | Regression introduced by commit | => https://code.openbravo.com/erp/devel/pi/rev/b26a24d2053e04743e90c430dc6f14098348651b [^] |
2016-02-23 10:57 | alostale | Assigned To | platform => alostale |
2016-02-23 10:58 | alostale | Relationship added | caused by 0030308 |
2016-02-23 10:58 | alostale | Status | new => scheduled |
2016-02-23 11:08 | alostale | File Added: OrderLineObserver.java | |
2016-02-24 15:02 | alostale | Review Assigned To | => caristu |
2016-02-24 15:03 | hgbot | Checkin | |
2016-02-24 15:03 | hgbot | Note Added: 0084462 | |
2016-02-24 15:03 | hgbot | Checkin | |
2016-02-24 15:03 | hgbot | Note Added: 0084463 | |
2016-02-24 15:03 | hgbot | Status | scheduled => resolved |
2016-02-24 15:03 | hgbot | Resolution | open => fixed |
2016-02-24 15:03 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/64dcdb9cf68b85655f7f634657eef6b685092cb5 [^] |
2016-02-24 17:31 | caristu | Note Added: 0084470 | |
2016-02-24 17:31 | caristu | Status | resolved => closed |
2016-02-24 17:31 | caristu | Fixed in Version | => 3.0PR16Q2 |
2016-03-17 10:56 | hudsonbot | Checkin | |
2016-03-17 10:56 | hudsonbot | Note Added: 0085164 | |
2016-03-17 10:56 | hudsonbot | Checkin | |
2016-03-17 10:56 | hudsonbot | Note Added: 0085165 | |
2017-01-26 14:17 | alostale | Relationship added | related to 0035060 |
Notes |
|
(0084462)
|
hgbot
|
2016-02-24 15:03
|
|
Repository: erp/devel/pi
Changeset: ea854655f9aa2e204bc2d7d51ead6364ea9c8e4f
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Tue Feb 23 16:38:23 2016 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/ea854655f9aa2e204bc2d7d51ead6364ea9c8e4f [^]
related to bug 32308: added test cases covering observers with ds update
---
M src-test/src/org/openbravo/test/AllAntTaskTests.java
A modules/org.openbravo.client.application/src-test/org/openbravo/client/application/test/event/DatasourceEventObserver.java
A modules/org.openbravo.client.application/src-test/org/openbravo/client/application/test/event/OrderLineTestObserver.java
---
|
|
|
(0084463)
|
hgbot
|
2016-02-24 15:03
|
|
Repository: erp/devel/pi
Changeset: 64dcdb9cf68b85655f7f634657eef6b685092cb5
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Tue Feb 23 16:37:30 2016 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/64dcdb9cf68b85655f7f634657eef6b685092cb5 [^]
fixed bug 32308: 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
M src/org/openbravo/base/structure/BaseOBObject.java
---
|
|
|
|
|
|
|
|
|
|
|