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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0007502
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] Z. Otherscriticalalways2009-02-11 14:332009-04-24 00:00
ReporterartemView Statuspublic 
Assigned Toalostale 
PriorityhighResolutionfixedFixed in Version
StatusclosedFix in branchpiFixed in SCM revision13052
ProjectionnoneETAnoneTarget Versionpi
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionpiSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0007502: WindowTreeData generates incorrectly

DescriptionWhile log in Openbravo the following exception occurs:

java.lang.ArrayIndexOutOfBoundsException: 0
at org.openbravo.base.secureApp.OrgTree.<init>(OrgTree.java:37)
at org.openbravo.base.secureApp.LoginUtils.fillSessionArguments(LoginUtils.java:70)
at org.openbravo.erpCommon.ad_forms.Role.saveDefaultOptions(Role.java:152)
at org.openbravo.erpCommon.ad_forms.Role.doPost(Role.java:87)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at org.openbravo.base.HttpBaseServlet.serviceInitialized(HttpBaseServlet.java:225)
at org.openbravo.base.secureApp.HttpSecureAppServlet.service(HttpSecureAppServlet.java:331)
...

This occurs because WindowTreeData generates incorrectly in part of method selectTreeID():
...
strSql = strSql +
      " SELECT NODE_ID, ID, NAME " +
      " FROM (" +
      " SELECT AD_Client_ID as Node_ID, AD_Tree_ID AS ID, NAME, 1 AS SEQNO" +
      " FROM AD_Tree " +
      " WHERE AD_Client_ID IN (";
    strSql = strSql + ((adClientId==null || adClientId.equals(""))?"":adClientId);
    strSql = strSql + ((adClientId==null || adClientId.equals(""))?"":adClientId);
    strSql = strSql +
      ") " +
...
Proposed SolutionPlease apply patch.
Tagsmain
Attached Filesdiff file icon WindowTree_data.diff [^] (1,801 bytes) 2009-02-11 14:33 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]
has duplicate defect 0007503pi closedrafaroda ArrayIndexOutOfBoundsException on application startup. 
related to defect 0007407pi closedalostale Organization's tree works randomly 

-  Notes
(0013346)
svnbot (reporter)
2009-02-11 15:09

Repository: openbravo
Revision: 13052
Author: alostale
Date: 2009-02-11 15:09:26 +0100 (Wed, 11 Feb 2009)

fixed bug 0007502: WindowTreeData generates incorrectly

---
U trunk/src/org/openbravo/erpCommon/utility/WindowTree_data.xsql
---

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

- Issue History
Date Modified Username Field Change
2009-02-11 14:33 artem New Issue
2009-02-11 14:33 artem Assigned To => rafaroda
2009-02-11 14:33 artem File Added: WindowTree_data.diff
2009-02-11 14:33 artem Regression testing => No
2009-02-11 14:48 rafaroda Relationship added related to 0007407
2009-02-11 15:03 rafaroda Status new => scheduled
2009-02-11 15:03 rafaroda Assigned To rafaroda => alostale
2009-02-11 15:03 rafaroda fix_in_branch => trunk
2009-02-11 15:09 svnbot Checkin
2009-02-11 15:09 svnbot Note Added: 0013346
2009-02-11 15:09 svnbot Status scheduled => resolved
2009-02-11 15:09 svnbot Resolution open => fixed
2009-02-11 15:09 svnbot svn_revision => 13052
2009-02-11 16:00 rafaroda Relationship added has duplicate 0007503
2009-04-22 11:24 psarobe Tag Attached: main
2009-04-23 18:15 psarobe Status resolved => closed
2009-04-24 00:00 anonymous sf_bug_id 0 => 2779918


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker