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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0010715
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformmajorhave not tried2009-09-23 15:392009-10-17 00:00
ReportershuehnerView Statuspublic 
Assigned Toshuehner 
PrioritynormalResolutionfixedFixed in Version
StatusclosedFix in branchpiFixed in SCM revision7c302cdb1c7f
ProjectionnoneETAnoneTarget Version
OSAnyDatabasePostgreSQLJava version
OS VersionDatabase versionAnt version
Product Version2.40SCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0010715: On SQL error when using ComboTableData on postgres only error message is '0' instead of the real database error

DescriptionThe 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 Reproduce1.) 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 SolutionFix 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.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0010344 closedshuehner org.openbravo.erpCommon.utility.ComboTableData performance issue on PostgreSQL 
depends on backport 0010716 closedshuehner On SQL error when using ComboTableData on postgres only error message is '0' instead of the real database error 

-  Notes
(0020315)
shuehner (administrator)
2009-09-23 15:39

Note the steps to reproduce contain an artificial testcase just to reproduce an error here. The real error came up when testing the patch attached to issue 10318.
(0020316)
hgbot (developer)
2009-09-23 15:51

Repository: erp/devel/pi
Changeset: 7c302cdb1c7fb0dffc75218fdc78c4981f71b14e
Author: Stefan Hühner <stefan.huehner <at> openbravo.com>
Date: Wed Sep 23 15:50:13 2009 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/7c302cdb1c7fb0dffc75218fdc78c4981f71b14e [^]

Fixed 10715: Fix error reporting in ComboTableData, don't throw away error text

---
M src/org/openbravo/erpCommon/utility/ComboTableData.java
---
(0020507)
hgbot (developer)
2009-09-29 14:17

Repository: erp/devel/pi-pageddatagrid
Changeset: 7c302cdb1c7fb0dffc75218fdc78c4981f71b14e
Author: Stefan Hühner <stefan.huehner <at> openbravo.com>
Date: Wed Sep 23 15:50:13 2009 +0200
URL: http://code.openbravo.com/erp/devel/pi-pageddatagrid/rev/7c302cdb1c7fb0dffc75218fdc78c4981f71b14e [^]

Fixed 10715: Fix error reporting in ComboTableData, don't throw away error text

---
M src/org/openbravo/erpCommon/utility/ComboTableData.java
---
(0021105)
marvintm (developer)
2009-10-16 12:43

I followed the steps to reproduce the problem, and I got the new, improved message.

- Issue History
Date Modified Username Field Change
2009-09-23 15:39 shuehner New Issue
2009-09-23 15:39 shuehner Assigned To => shuehner
2009-09-23 15:39 shuehner Note Added: 0020315
2009-09-23 15:39 shuehner Relationship added related to 0010318
2009-09-23 15:40 shuehner Status new => scheduled
2009-09-23 15:40 shuehner fix_in_branch => pi
2009-09-23 15:40 shuehner Relationship added related to 0010344
2009-09-23 15:40 shuehner Relationship deleted related to 0010318
2009-09-23 15:51 hgbot Checkin
2009-09-23 15:51 hgbot Note Added: 0020316
2009-09-23 15:51 hgbot Status scheduled => resolved
2009-09-23 15:51 hgbot Resolution open => fixed
2009-09-23 15:51 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/7c302cdb1c7fb0dffc75218fdc78c4981f71b14e [^]
2009-09-23 16:12 psarobe Tag Attached: 250mp6
2009-09-24 19:12 psarobe Tag Detached: 250mp6
2009-09-29 14:17 hgbot Checkin
2009-09-29 14:17 hgbot Note Added: 0020507
2009-09-29 14:17 hgbot Fixed in SCM revision http://code.openbravo.com/erp/devel/pi/rev/7c302cdb1c7fb0dffc75218fdc78c4981f71b14e [^] => http://code.openbravo.com/erp/devel/pi-pageddatagrid/rev/7c302cdb1c7fb0dffc75218fdc78c4981f71b14e [^]
2009-10-16 12:43 marvintm Status resolved => closed
2009-10-16 12:43 marvintm Note Added: 0021105
2009-10-17 00:00 anonymous sf_bug_id 0 => 2880776


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker