Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0006683Openbravo ERP00. Application dictionarypublic2008-12-19 12:162009-04-21 11:09
alostale 
vmromanos 
urgentcriticalsometimes
closedfixed 
5
 
 
Core
No
0006683: Error accessing windows in edition mode
Depending on the organization assigned to a role the following error is raised whenever a page in edition mode is tried to be accessed:

java.lang.StringIndexOutOfBoundsException: String index out of range: -1

It is possible that this happens when the role has more than one organization assigned (not sure, check it).

This is part of the stack trace error that appears in catalina.out log:

java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    at java.lang.AbstractStringBuilder.deleteCharAt(AbstractStringBuilder.java:770)
    at java.lang.StringBuffer.deleteCharAt(StringBuffer.java:382)
    at org.openbravo.base.secureApp.OrgTree.getTransactionAllowedOrgs(OrgTree.java:105)
    at org.openbravo.erpCommon.utility.Utility.getContext(Utility.java:338)
    at org.openbravo.erpWindows.SimpleSalesOrder.Header.printPageEdit(Header.java:763)

Look that the problem is in org.openbravo.base.secureApp.OrgTree.getTransactionAllowedOrgs, line 105 when manipulating the string.

My environment passed to this method as strOrgs parameter: '1000001','1000002'
-Enter in any window with the proper role settings (more than two orgs assigned?)
No tags attached.
Issue History
2008-12-19 12:16alostaleNew Issue
2008-12-19 12:16alostaleAssigned To => vmromanos
2008-12-19 12:16alostalesf_bug_id0 => 2448408
2008-12-19 12:16alostaleRegression testing => No
2008-12-19 13:24svnbotCheckin
2008-12-19 13:24svnbotNote Added: 0011590
2008-12-19 13:24svnbotStatusnew => resolved
2008-12-19 13:24svnbotResolutionopen => fixed
2008-12-19 13:24svnbotsvn_revision => 11411
2009-04-21 11:09psarobeStatusresolved => closed

Notes
(0011590)
svnbot   
2008-12-19 13:24   
Repository: openbravo
Revision: 11411
Author: vmromanos
Date: 2008-12-19 13:24:01 +0100 (Fri, 19 Dec 2008)

Fixed bug 0006683: Error accessing windows in edition mode

---
U trunk/src/org/openbravo/base/secureApp/OrgTree.java
---

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