Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||||
ID | |||||||||||
0028631 | |||||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||||
defect | [Openbravo ERP] A. Platform | minor | always | 2015-01-15 17:39 | 2022-02-01 08:05 | ||||||
Reporter | gorkaion | View Status | public | ||||||||
Assigned To | Triage Platform Base | ||||||||||
Priority | normal | Resolution | open | Fixed in Version | |||||||
Status | acknowledged | Fix in branch | Fixed in SCM revision | ||||||||
Projection | none | ETA | none | Target Version | |||||||
OS | Linux 32 bit | Database | Oracle | Java version | 1.5.0_15 | ||||||
OS Version | Gentoo | Database version | 11g | Ant version | 1.7.0 | ||||||
Product Version | SCM revision | ||||||||||
Review Assigned To | |||||||||||
Web browser | |||||||||||
Modules | JSON Datasource | ||||||||||
Regression level | |||||||||||
Regression date | |||||||||||
Regression introduced in release | |||||||||||
Regression introduced by commit | |||||||||||
Triggers an Emergency Pack | No | ||||||||||
Summary | 0028631: HQLDataSourceService setAdminMode without try & finally | ||||||||||
Description | The getData method of HQLDataSourceService does a OBContext.setAdminMode(true); but there is not a try & finally block to ensure that the restorePreviousMode is always executed. It is common during development to raise exceptions on this method when the HQL query is wrong. In this cases the log shows the unbalanced calls to admin mode warning as the restore is not executed. | ||||||||||
Steps To Reproduce | On an HQL Query based table modify the HQL so it is not a valid one. Open the process that uses that table and check the log. 1. As System Administrator: 2. Modify the aprm_orderinvoice table so the HQL is wrong. 3. As Openbravo Admin: 4. Open the Sales Invoice window and search one that is not paid. 5. Open the Add Payment pick and execute, the invoices grid is empty. 6. Check the log and see the unbalanced calls warning. | ||||||||||
Tags | No tags attached. | ||||||||||
Attached Files | |||||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | ||||||||
|
Issue History | |||
Date Modified | Username | Field | Change |
2015-01-15 17:39 | gorkaion | New Issue | |
2015-01-15 17:39 | gorkaion | Assigned To | => AugustoMauch |
2015-01-15 17:39 | gorkaion | Modules | => JSON Datasource |
2015-01-15 17:39 | gorkaion | Triggers an Emergency Pack | => No |
2015-01-15 18:31 | gorkaion | Issue cloned | 0028633 |
2015-01-15 18:31 | gorkaion | Relationship added | related to 0028633 |
2015-03-11 10:07 | alostale | Status | new => acknowledged |
2015-03-17 14:38 | alostale | Assigned To | AugustoMauch => platform |
2022-02-01 08:05 | alostale | Assigned To | platform => Triage Platform Base |
Copyright © 2000 - 2009 MantisBT Group |