Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0046623Openbravo ERPC. Securitypublic2021-05-11 17:202022-02-01 07:24
Practics 
Triage Platform Base 
normalminoralways
newopen 
5
 
 
Google Chrome
Core
No
0046623: Substring incorrect in class Utility.java
In class /src/org/openbravo/erpCommon/utility/Utility.java has incorrect substring to remove client cero (system). A substring of 2 is made when it should be 4
If a substring of 2 is made the result is: ',
If a sustring of 4 is made the result is blank
1- Go to class Utility.java
2- In line 471 method : getContext(ConnectionProvider conn, VariablesSecureApp vars, String context, String strWindow, int accessLevel)
3- In line 518: } else if (retValue.startsWith("'0',")) {
                retValue = retValue.substring(2);
              }
4- Fix with: } else if (retValue.startsWith("'0',")) {
                retValue = retValue.substring(4);
              }
Attached diff
No tags attached.
diff bugFixUtility.diff (505) 2021-05-11 17:20
https://issues.openbravo.com/file_download.php?file_id=15700&type=bug
Issue History
2021-05-11 17:20PracticsNew Issue
2021-05-11 17:20PracticsAssigned To => platform
2021-05-11 17:20PracticsFile Added: bugFixUtility.diff
2021-05-11 17:20PracticsWeb browser => Google Chrome
2021-05-11 17:20PracticsModules => Core
2021-05-11 17:20PracticsTriggers an Emergency Pack => No
2021-05-11 17:21PracticsIssue Monitored: Practics
2022-02-01 07:24alostaleAssigned Toplatform => Triage Platform Base

There are no notes attached to this issue.