Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0023060 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] 01. General setup | critical | always | 2013-02-12 19:45 | 2013-02-20 04:50 | |||
Reporter | dmiguelez | View Status | public | |||||
Assigned To | AugustoMauch | |||||||
Priority | immediate | Resolution | fixed | Fixed in Version | 3.0MP20 | |||
Status | closed | Fix in branch | Fixed in SCM revision | 616685f33ea2 | ||||
Projection | none | ETA | none | Target Version | ||||
OS | Linux 32 bit | Database | PostgreSQL | Java version | 1.6.0_18 | |||
OS Version | Community Appliance | Database version | 8.3.9 | Ant version | 1.7.1 | |||
Product Version | SCM revision | |||||||
Merge Request Status | ||||||||
Review Assigned To | alostale | |||||||
OBNetwork customer | No | |||||||
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. | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
|||||||||||||||
|
![]() |
|
(0056413) hgbot (developer) 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 --- |
(0056414) alostale (viewer) 2013-02-13 13:39 |
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 (developer) 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 --- |
(0056428) alostale (viewer) 2013-02-14 08:07 |
Code reviewed + tested on pi@d033d813595f Executed test plan: imported F&B client |
(0056590) hudsonbot (viewer) 2013-02-20 04:50 |
A changeset related to this issue has been promoted main and to the Central Repository, after passing a series of tests. Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/d828167a9e83 [^] Maturity status: Test |
(0056591) hudsonbot (viewer) 2013-02-20 04:50 |
A changeset related to this issue has been promoted main and to the Central Repository, after passing a series of tests. Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/d828167a9e83 [^] Maturity status: Test |
![]() |
|||
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 | OBNetwork customer | => No |
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 |
Copyright © 2000 - 2009 MantisBT Group |