Bug #2579

RCP: 0.8.0, ODS and XSLX metadata file

Added by Matthieu Decorde 2 months ago.

Status:New Start date:05/17/2019
Priority:Normal Due date:
Assignee:- % Done:

80%

Category:Import Spent time: -
Target version:TXM 0.8.0

Description

The import with a metadata.xslx or metadata.ods might fail with the following errors:

XSLX:

An internal error occurred during: "Exécution du script xtz".
org/txm/libs/msoffice/ReadExcel 

ODS

Démarrage du script d'import Groovy xtzLoader.groovy.
java.lang.IndexOutOfBoundsException: Index: 25, Size: 25
    at java.util.ArrayList.rangeCheck(ArrayList.java:657)
    at java.util.ArrayList.get(ArrayList.java:433)
    at org.txm.metadatas.Metadatas.convertTableToXml(Metadatas.java:256)
    at org.txm.metadatas.Metadatas.convertODSToXml(Metadatas.java:277)
    at org.txm.metadatas.Metadatas.<init>(Metadatas.java:158)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) 

Solution

XSLX: it was a compilation error

ODS: it was an error in the column number of lines

Also available in: Atom PDF