Openbravo Issue Tracking System - Modules
View Issue Details
0019931ModulesCuaderno 43public2012-03-01 12:162012-05-14 17:17
maite 
ioritzCia 
highminoralways
closedfixed 
5
 
 
OBPS
0019931: No error shown in user interface when bank statement file contains additional empty line at end of file
No error shown in user interface when bank statement file contains additional empty line at end of file. Error shown in log is
"ERROR org.openbravo.base.exception.OBException - String index out of range: 2
java.lang.StringIndexOutOfBoundsException: String index out of range: 2"
1. install Cuaderno 43 module
2. go to Financial Account "Banco de EspaƱa - Cuenta 1" and set:
  Bank Code= 2000
  Branch Code=2000
  Bank Control Digit=3
  Account control digit=0
  Partial Account No.=0000000001
  Account No.= 200020000000000001
3. press "Import statement" button
4. try to import attached ban statement file and realize that no error message is obtained but if you go to "Imported Bank Statement" tab you can verify that bank statement has not been imported.

review log and verify that error has been captured

Show error message indicating that Bank statement file could not be imported due to wrong line and indicate which line is causing problem
No tags attached.
? test.ext (446) 2012-03-01 12:16
https://issues.openbravo.com/file_download.php?file_id=5046&type=bug
Issue History
2012-03-01 12:16maiteNew Issue
2012-03-01 12:16maiteAssigned To => eduardo_Argal
2012-03-01 12:16maiteFile Added: test.ext
2012-03-01 12:16maiteOBNetwork customer => Yes
2012-03-01 12:18maiteIssue Monitored: networkb
2012-03-06 17:47jonalegriaesarteAssigned Toeduardo_Argal => jecharri
2012-04-13 10:11jecharriAssigned Tojecharri => ioritzCia
2012-05-08 18:24hgbotCheckin
2012-05-08 18:24hgbotNote Added: 0048468
2012-05-08 18:24hgbotStatusnew => resolved
2012-05-08 18:24hgbotResolutionopen => fixed
2012-05-08 18:24hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.module.cuaderno43.es/rev/c10d46987dea09cbfd1facc3b860be526074a7a4 [^]
2012-05-08 18:26ioritzCiaNote Added: 0048469
2012-05-14 17:17maiteNote Added: 0048629
2012-05-14 17:17maiteStatusresolved => closed

Notes
(0048468)
hgbot   
2012-05-08 18:24   
Repository: erp/pmods/org.openbravo.module.cuaderno43.es
Changeset: c10d46987dea09cbfd1facc3b860be526074a7a4
Author: Ioritz Cia <ioritz.cia <at> openbravo.com>
Date: Tue May 08 13:48:53 2012 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.module.cuaderno43.es/rev/c10d46987dea09cbfd1facc3b860be526074a7a4 [^]

Fixes issue 19931: Error importing bank statement.
No error shown in user interface when bank statement file contains additional empty line at end of file.

---
M src-db/database/sourcedata/AD_COLUMN.xml
M src-db/database/sourcedata/AD_FIELD.xml
M src-db/database/sourcedata/AD_MODULE.xml
M src/org/openbravo/module/cuaderno43/es/utility/Cuaderno43.java
---
(0048469)
ioritzCia   
2012-05-08 18:26   
Process Plan:

Follow the steps to reproduce, now it should not fail, it should work properly even if the file has empty lines at the end.
(0048629)
maite   
2012-05-14 17:17   
verified