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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0030737
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformmajorhave not tried2015-09-02 12:272015-09-14 17:57
ReportershuehnerView Statuspublic 
Assigned Toalostale 
PrioritynormalResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revisiona98b85433a15
ProjectionnoneETAnoneTarget Version3.0PR15Q4
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Toinigosanchez
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0030737: New ad_table_navigation_mod_trg is broken for updates (It has wrong coalesce mixing varchar & numeric data)

DescriptionThat trigger is broken and does not work for updates because if has a wrong sql code doing the following:

        COALESCE(NEW.SeqNo , '.') != COALESCE(OLD.SeqNo , '.') OR

Which is mixing numeric column seqno with a varchar '.' which is wrong.

Probably cause copy'n'paste of other text column and then no testing done for the update case of that trigger

ERROR: invalid input syntax for type numeric: "."
  Where: PL/pgSQL function ad_table_navigation_mod_trg() line 66 at IF
Steps To ReproducePreparation:
On a postgres db
Search for a table having a ad_table_navigation entry or create such an entry for any table.

then without any module in development try to edit in UI the ad_table_navigation entry and check the error message appearing.

TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0080017)
shuehner (administrator)
2015-09-02 12:29

Adding target version Q4 as that is new project merged for Q4 so the error in the project has not been published yet and should be fixed before publishing.
(0080189)
hgbot (developer)
2015-09-07 13:15

Repository: erp/devel/pi
Changeset: a98b85433a15ff3d76ea47fef0dd7992e75a0e3f
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Mon Sep 07 13:13:46 2015 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/a98b85433a15ff3d76ea47fef0dd7992e75a0e3f [^]

fixed bug 30737: broken ad_table_navigation_mod_trg for updates

  ad_table_navigation_mod_trg trigger had a coalesce that was mxing types
  (varchar and numeric) which is not allowed raising an error in when this
  code was exectued.

  Fixed by completely removing this colasce as it was in seqNo column which
  is mandatory.

---
M src-db/database/model/triggers/AD_TABLE_NAVIGATION_MOD_TRG.xml
---
(0080249)
hudsonbot (developer)
2015-09-08 19:28

A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/16e399c2fccf [^]
Maturity status: Test
(0080385)
inigosanchez (developer)
2015-09-14 17:57

Code reviewed and verified in pi@d45d2896cfa6
Tested in PostgreSQL 9.1.14 & Oracle 11.2

- Issue History
Date Modified Username Field Change
2015-09-02 12:27 shuehner New Issue
2015-09-02 12:27 shuehner Assigned To => platform
2015-09-02 12:27 shuehner Modules => Core
2015-09-02 12:27 shuehner Triggers an Emergency Pack => No
2015-09-02 12:27 shuehner Severity minor => major
2015-09-02 12:29 shuehner Note Added: 0080017
2015-09-02 12:29 shuehner Target Version => 3.0PR15Q4
2015-09-07 13:05 alostale Status new => scheduled
2015-09-07 13:05 alostale Assigned To platform => alostale
2015-09-07 13:14 alostale Review Assigned To => inigosanchez
2015-09-07 13:15 hgbot Checkin
2015-09-07 13:15 hgbot Note Added: 0080189
2015-09-07 13:15 hgbot Status scheduled => resolved
2015-09-07 13:15 hgbot Resolution open => fixed
2015-09-07 13:15 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/a98b85433a15ff3d76ea47fef0dd7992e75a0e3f [^]
2015-09-08 19:28 hudsonbot Checkin
2015-09-08 19:28 hudsonbot Note Added: 0080249
2015-09-14 17:57 inigosanchez Note Added: 0080385
2015-09-14 17:57 inigosanchez Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker