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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0006307
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] 01. General setupmajoralways2008-12-01 18:092009-04-21 12:36
ReportergalderromoView Statuspublic 
Assigned Toanthony_wolski 
PriorityhighResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision12082
ProjectionnoneETAnoneTarget Version
OSLinux 32 bitDatabaseOracleJava version1.5.0_15
OS VersionGentoo 2.6.24Database versionXEAnt version1.7
Product Version2.35MP4SCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0006307: Alert rules define alert names longer than REFERENCEKEY_ID column in AD_ALERT table

DescriptionThe disabled constraints ad_alertrule (id=1000008) can cause a database error. The constraint name (referencekey_id) can be larger than defined column at AD_ALERT.

This database error avoids the application working as expected.

> javax.servlet.ServletException: @CODE=12899@ORA-12899: value too large for column "TAD_HOLDING"."AD_ALERT"."REFERENCEKEY_ID" (actual: 23, maximum: 20)
>
>at org.openbravo.erpCommon.ad_background.PeriodicAlertData.InsertAlert
>at org.openbravo.erpCommon.ad_background.PeriodicAlertData.InsertAlert
>at org.openbravo.erpCommon.ad_background.PeriodicAlert.processAlert
>at org.openbravo.erpCommon.ad_background.PeriodicAlert.processPL
>at org.openbravo.erpCommon.ad_background.PeriodicBackground.process
>at org.openbravo.erpCommon.ad_background.PeriodicBackground.run(Unknown Source)
>at java.lang.Thread.run(Thread.java:595)

Also happends in other alert rules as disactivated triggers. A general review is needed.
Steps To ReproduceMake sure your alert background process is enabled, disable a constraint and have a look to your OpenbravoERP logs.
Proposed SolutionCut the length of the names to 20 characters, so the background process won't fail on inserting.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0010854)
galderromo (reporter)
2008-12-01 18:10

On the proposed solution, I mean cutting the length of the constraint name on the select statement but not cutting the constraint name on database. :)
(0012325)
psarobe (manager)
2009-01-19 13:02

Galder please update the product version combo
(0012367)
galderromo (reporter)
2009-01-19 20:58

I can not update the product version, but is 2.35 + MP4
(0012433)
svnbot (reporter)
2009-01-21 10:43

Repository: openbravo
Revision: 12082
Author: anthony.wolski
Date: 2009-01-21 10:43:34 +0100 (Wed, 21 Jan 2009)

Fixes issue 0006307. AD_ALERT.REFERENCEKEY_ID size increased from 20 to 30

---
U branches/r2.3x/database/model/tables/AD_ALERT.xml
---

https://dev.openbravo.com/websvn/openbravo/?rev=12082&sc=1 [^]

- Issue History
Date Modified Username Field Change
2008-12-01 18:09 galderromo New Issue
2008-12-01 18:09 galderromo Assigned To => rafaroda
2008-12-01 18:09 galderromo sf_bug_id 0 => 2372259
2008-12-01 18:10 galderromo Note Added: 0010854
2008-12-03 19:03 pjuvara Priority normal => high
2008-12-09 12:24 pheenan Assigned To rafaroda => pheenan
2008-12-09 12:24 pheenan Status new => scheduled
2008-12-09 12:24 pheenan fix_in_branch => trunk
2008-12-18 16:17 pheenan Assigned To pheenan => Hennadzi
2008-12-22 14:50 PavelPonomarev Assigned To Hennadzi => rafaroda
2009-01-10 17:55 rafaroda Assigned To rafaroda => anthony_wolski
2009-01-19 13:02 psarobe Note Added: 0012325
2009-01-19 13:03 psarobe Status scheduled => feedback
2009-01-19 20:58 galderromo Note Added: 0012367
2009-01-20 17:18 anthony_wolski version => 2.35MP4
2009-01-20 17:18 anthony_wolski fix_in_branch trunk =>
2009-01-21 10:43 svnbot Checkin
2009-01-21 10:43 svnbot Note Added: 0012433
2009-01-21 10:43 svnbot Status feedback => resolved
2009-01-21 10:43 svnbot Resolution open => fixed
2009-01-21 10:43 svnbot svn_revision => 12082
2009-04-21 12:36 psarobe Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker