Openbravo Issue Tracking System - Openbravo ERP | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0028633 | Openbravo ERP | A. Platform | public | 2015-01-15 18:31 | 2015-01-15 18:31 | |||||||
Reporter | gorkaion | |||||||||||
Assigned To | AugustoMauch | |||||||||||
Priority | normal | Severity | minor | Reproducibility | always | |||||||
Status | new | Resolution | open | |||||||||
Platform | OS | 20 | OS Version | Gentoo | ||||||||
Product Version | ||||||||||||
Target Version | Fixed in Version | |||||||||||
Merge Request Status | ||||||||||||
Review Assigned To | ||||||||||||
OBNetwork customer | ||||||||||||
Web browser | ||||||||||||
Modules | JSON Datasource | |||||||||||
Support ticket | ||||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0028633: Better log of SqlGrammarException | |||||||||||
Description | When the HQL of a HQLDataSourceService fails with an SqlGrammarException the log of the error is not meaningful. It would be nice if this type of exceptions are caught so the sql causing them is also included in the log using the SqlGrammarException.getSql() method. | |||||||||||
Steps To Reproduce | On an HQL based table modify it so it throws an SQLGrammarException | |||||||||||
Proposed Solution | This kind of exception is thrown at least by the list() method executed in the getData() method of the HQLDataSourceService class. The exception is managed by the handleException() method of the DataSourceServlet class. There are 2 possibilities: 1. Add a cast in the DataSourceServlet.class so any datasource implementation throwing this exception is covered. 2. Add a try/catch in the HQLDataSourceService class for SQLGrammarExceptions to log the wrong SQL and throw it again so it is managed by the DataSourceServlet as usual. | |||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ||||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2015-01-15 18:31 | gorkaion | New Issue | ||||||||||
2015-01-15 18:31 | gorkaion | Assigned To | => AugustoMauch | |||||||||
2015-01-15 18:31 | gorkaion | Modules | => JSON Datasource | |||||||||
2015-01-15 18:31 | gorkaion | Triggers an Emergency Pack | => No | |||||||||
2015-01-15 18:31 | gorkaion | Issue generated from | 0028631 | |||||||||
2015-01-15 18:31 | gorkaion | Relationship added | related to 0028631 |
There are no notes attached to this issue. |