Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0010716 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
backport | [Openbravo ERP] A. Platform | major | have not tried | 2009-09-23 15:39 | 2009-10-12 09:33 | |||
Reporter | shuehner | View Status | public | |||||
Assigned To | shuehner | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | 2.40MP10 | |||
Status | closed | Fix in branch | 2.40 | Fixed in SCM revision | b992831aebc1 | |||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | PostgreSQL | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | 2.40 | SCM revision | ||||||
Merge Request Status | ||||||||
Review Assigned To | ||||||||
OBNetwork customer | No | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Support ticket | ||||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0010716: On SQL error when using ComboTableData on postgres only error message is '0' instead of the real database error | |||||||
Description | The error reporting code inside ComboTableData does throw away the error message text and only keep the error code number. This lead to completely useless errror message shown to the user. | |||||||
Steps To Reproduce | 1.) Produce an sql error in some sql executes by ComboTableData update ad_ref_table set whereclause = 'XISTS (SELECT * FROM C_BPartner bp WHERE AD_User.C_BPartner_ID=bp.C_BPartner_ID AND bp.IsSalesRep=\'Y\')' where ad_reference_id = 190; 2.) Login as openbravo admin 3.) Go to masterdata management -> Product 4.) Error message 'Error: 0' (on postgres) is shown | |||||||
Proposed Solution | Fix ComboTableData to not throw away the database provided error message. This is not perfect but provides (depending on the real sql error) more info to report in a support ticket. | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
||||||||
|
![]() |
|
(0020317) hgbot (developer) 2009-09-23 15:53 |
Repository: erp/stable/2.40 Changeset: b992831aebc19f79e0afe61e203c6d72db2c4b67 Author: Stefan Hühner <stefan.huehner <at> openbravo.com> Date: Wed Sep 23 15:52:27 2009 +0200 URL: http://code.openbravo.com/erp/stable/2.40/rev/b992831aebc19f79e0afe61e203c6d72db2c4b67 [^] Fixed 10716: Fix error reporting in ComboTableData, don't throw away error text --- M src/org/openbravo/erpCommon/utility/ComboTableData.java --- |
(0020443) hgbot (developer) 2009-09-29 12:02 |
Repository: erp/stable/2.40_pageddatagrid Changeset: b992831aebc19f79e0afe61e203c6d72db2c4b67 Author: Stefan Hühner <stefan.huehner <at> openbravo.com> Date: Wed Sep 23 15:52:27 2009 +0200 URL: http://code.openbravo.com/erp/stable/2.40_pageddatagrid/rev/b992831aebc19f79e0afe61e203c6d72db2c4b67 [^] Fixed 10716: Fix error reporting in ComboTableData, don't throw away error text --- M src/org/openbravo/erpCommon/utility/ComboTableData.java --- |
(0020938) arunkumar (viewer) 2009-10-12 09:33 |
Now the error message is displayed as Error: java.lang.Exception: CODE=0ERROR: syntax error at or near "SELECT" |
![]() |
|||
Date Modified | Username | Field | Change |
2009-09-23 15:40 | shuehner | Type | defect => backport |
2009-09-23 15:40 | shuehner | fix_in_branch | => 2.40 |
2009-09-23 15:53 | hgbot | Checkin | |
2009-09-23 15:53 | hgbot | Note Added: 0020317 | |
2009-09-23 15:53 | hgbot | Status | scheduled => resolved |
2009-09-23 15:53 | hgbot | Resolution | open => fixed |
2009-09-23 15:53 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/stable/2.40/rev/b992831aebc19f79e0afe61e203c6d72db2c4b67 [^] |
2009-09-29 12:02 | hgbot | Checkin | |
2009-09-29 12:02 | hgbot | Note Added: 0020443 | |
2009-09-29 12:02 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/stable/2.40/rev/b992831aebc19f79e0afe61e203c6d72db2c4b67 [^] => http://code.openbravo.com/erp/stable/2.40_pageddatagrid/rev/b992831aebc19f79e0afe61e203c6d72db2c4b67 [^] |
2009-10-12 09:33 | arunkumar | Status | resolved => closed |
2009-10-12 09:33 | arunkumar | Note Added: 0020938 | |
2009-10-12 09:33 | arunkumar | Fixed in Version | => 2.40MP10 |
Copyright © 2000 - 2009 MantisBT Group |