Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0023060 | Openbravo ERP | 01. General setup | public | 2013-02-12 19:45 | 2013-02-20 04:50 |
|
Reporter | dmiguelez | |
Assigned To | AugustoMauch | |
Priority | immediate | Severity | critical | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 20 | OS Version | Community Appliance |
Product Version | | |
Target Version | | Fixed in Version | 3.0MP20 | |
Merge Request Status | |
Review Assigned To | alostale |
OBNetwork customer | |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | Production - QA Approved |
Regression date | 2012-10-24 |
Regression introduced in release | |
Regression introduced by commit | https://code.openbravo.com/erp/devel/pi/rev/08ae440f4c71 [^] |
Triggers an Emergency Pack | No |
|
Summary | 0023060: Not possible to import a Client. Event Handlers should be disabled. |
Description | Not possible to import a Client.
The problem is that Event Handlers are not disabled before importing the data, event though the Triggers are. |
Steps To Reproduce | As System.
Delete F&B Client.
Copy the F&B xml file from sampledata to importclient folder.
Import F&B Client. |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | defect | 0023019 | | closed | dmiguelez | Error Import Client | related to | defect | 0023343 | | closed | iciordia | API Change - Event Handlers are disabled while data is being imported |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2013-02-12 19:45 | dmiguelez | New Issue | |
2013-02-12 19:45 | dmiguelez | Assigned To | => AugustoMauch |
2013-02-12 19:45 | dmiguelez | Modules | => Core |
2013-02-12 19:45 | dmiguelez | Triggers an Emergency Pack | => No |
2013-02-12 19:45 | dmiguelez | Relationship added | related to 0023019 |
2013-02-12 19:46 | dmiguelez | Regression level | => Production - QA Approved |
2013-02-12 19:46 | dmiguelez | Regression date | => 2012-10-24 |
2013-02-12 19:46 | dmiguelez | Regression introduced by commit | => https://code.openbravo.com/erp/devel/pi/rev/08ae440f4c71 [^] |
2013-02-13 09:42 | jecharri | Issue Monitored: jecharri | |
2013-02-13 12:57 | AugustoMauch | Issue Monitored: alostale | |
2013-02-13 12:57 | AugustoMauch | Review Assigned To | => alostale |
2013-02-13 13:05 | hgbot | Checkin | |
2013-02-13 13:05 | hgbot | Note Added: 0056413 | |
2013-02-13 13:05 | hgbot | Status | new => resolved |
2013-02-13 13:05 | hgbot | Resolution | open => fixed |
2013-02-13 13:05 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/788979b3e20ed755ee3594e7a36c95626f430175 [^] |
2013-02-13 13:39 | alostale | Note Added: 0056414 | |
2013-02-13 13:39 | alostale | Status | resolved => new |
2013-02-13 13:39 | alostale | Resolution | fixed => open |
2013-02-13 14:45 | hgbot | Checkin | |
2013-02-13 14:45 | hgbot | Note Added: 0056415 | |
2013-02-13 14:45 | hgbot | Status | new => resolved |
2013-02-13 14:45 | hgbot | Resolution | open => fixed |
2013-02-13 14:45 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/devel/pi/rev/788979b3e20ed755ee3594e7a36c95626f430175 [^] => http://code.openbravo.com/erp/devel/pi/rev/616685f33ea297365f386fcb6322ecc35156a83e [^] |
2013-02-14 08:07 | alostale | Note Added: 0056428 | |
2013-02-14 08:07 | alostale | Status | resolved => closed |
2013-02-14 08:07 | alostale | Fixed in Version | => 3.0MP20 |
2013-02-20 04:50 | hudsonbot | Checkin | |
2013-02-20 04:50 | hudsonbot | Note Added: 0056590 | |
2013-02-20 04:50 | hudsonbot | Checkin | |
2013-02-20 04:50 | hudsonbot | Note Added: 0056591 | |
2013-03-19 17:23 | AugustoMauch | Relationship added | related to 0023343 |
Notes |
|
(0056413)
|
hgbot
|
2013-02-13 13:05
|
|
Repository: erp/devel/pi
Changeset: 788979b3e20ed755ee3594e7a36c95626f430175
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Wed Feb 13 13:02:57 2013 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/788979b3e20ed755ee3594e7a36c95626f430175 [^]
Fixes issue 23060: Event handlers disabled when data is being imported
When data is being imported there will be a register in the AD_Session_Status table with the importing column set to true. In that case all event handlers will
be disabled by means of making the EntityPersistenceEventObserver.isValidEvent method return false.
---
M modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/event/EntityPersistenceEventObserver.java
M src/org/openbravo/erpCommon/utility/Utility.java
---
|
|
|
|
Reopen after code review.
Current fix adds an extra DB query whenever an entity is modified.
This might be replaced by TriggerHandler.getInstance().isDisabled() which checks in session rather than in DB. |
|
|
(0056415)
|
hgbot
|
2013-02-13 14:45
|
|
Repository: erp/devel/pi
Changeset: 616685f33ea297365f386fcb6322ecc35156a83e
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Wed Feb 13 14:44:20 2013 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/616685f33ea297365f386fcb6322ecc35156a83e [^]
Fixes issue 23060: Disables event handlers using session info
Instead of querying the database each time an event handlers is going to be executed to check is the system is importing data, that information is taken from the session using TriggerHandler.getInstance().isDisabled().
---
M modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/event/EntityPersistenceEventObserver.java
M src/org/openbravo/erpCommon/utility/Utility.java
---
|
|
|
|
Code reviewed + tested on pi@d033d813595f
Executed test plan: imported F&B client |
|
|
|
|
|
|
|