Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0028631
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformminoralways2015-01-15 17:392022-02-01 08:05
ReportergorkaionView Statuspublic 
Assigned ToTriage Platform Base 
PrioritynormalResolutionopenFixed in Version
StatusacknowledgedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSLinux 32 bitDatabaseOracleJava version1.5.0_15
OS VersionGentooDatabase version11gAnt version1.7.0
Product VersionSCM revision 
Review Assigned To
Web browser
ModulesJSON Datasource
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0028631: HQLDataSourceService setAdminMode without try & finally

DescriptionThe 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 ReproduceOn 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.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to feature request 0028633 newAugustoMauch Better log of SqlGrammarException 

-  Notes
There are no notes attached to this issue.

- 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
Powered by Mantis Bugtracker