Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0038828 | Openbravo ERP | A. Platform | public | 2018-06-21 11:20 | 2018-06-25 18:32 |
|
Reporter | AugustoMauch | |
Assigned To | AugustoMauch | |
Priority | normal | Severity | major | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | 3.0PR18Q2.1 | Fixed in Version | 3.0PR18Q2.1 | |
Merge Request Status | |
Review Assigned To | caristu |
OBNetwork customer | OBPS |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0038828: If flush inside TriggerHandler.enable() throws an exception, threadlocal is not cleared, thread remains with triggers disabled |
Description | If flush inside TriggerHandler.enable() throws an exception, threadlocal is not cleared, thread remains with triggers disabled.
This means that when that thread is reused the database and hibernate triggers will be disabled, although still the safety mechanisms work and the disablement will not be committed to the database. |
Steps To Reproduce | Create a process that:
- Disables the triggers
- Adds a record that will result in an exception when the flush is done (for instance create a UOM with a name of an existing one)
- Reenable the triggers. An exception will be thrown
- Don't disable the triggers again, and place some log to show whether the triggers are disabled. The next time the previous thread executes that log, it will show that their triggers remain disabled. |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | blocks | defect | 0038801 | | closed | AugustoMauch | If flush inside TriggerHandler.enable() throws an exception, threadlocal is not cleared, thread remains with triggers disabled |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2018-06-25 14:04 | AugustoMauch | Type | defect => backport |
2018-06-25 14:04 | AugustoMauch | Target Version | => 3.0PR18Q2.1 |
2018-06-25 14:52 | hgbot | Checkin | |
2018-06-25 14:52 | hgbot | Note Added: 0105361 | |
2018-06-25 14:52 | hgbot | Status | scheduled => resolved |
2018-06-25 14:52 | hgbot | Resolution | open => fixed |
2018-06-25 14:52 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/devel/pi/rev/3392fa97aa1c07f41e2727f8fdfea738c8716359 [^] => http://code.openbravo.com/erp/backports/3.0PR18Q2.1/rev/4887e05c89dc0357d1049a2024210612198d80cb [^] |
2018-06-25 18:17 | hgbot | Checkin | |
2018-06-25 18:17 | hgbot | Note Added: 0105368 | |
2018-06-25 18:32 | caristu | Note Added: 0105370 | |
2018-06-25 18:32 | caristu | Status | resolved => closed |
2018-06-25 18:32 | caristu | Fixed in Version | => 3.0PR18Q2.1 |