Seva Alekseyev created TIKA-2133: ------------------------------------ Summary: StringIndexOutOfBoundsException on a valid Word file Key: TIKA-2133 URL: https://issues.apache.org/jira/browse/TIKA-2133 Project: Tika Issue Type: Bug Components: parser Environment: Windows 7 x64, JVM 1.8.0_101 Reporter: Seva Alekseyev
On the attached Word file, which Word opens fine, the Tika parser throws the following error: java.lang.StringIndexOutOfBoundsException: String index out of range: -18 at java.lang.String.substring(Unknown Source) at org.apache.tika.parser.microsoft.ListManager.convertToNewNumberText(ListManager.java:148) at org.apache.tika.parser.microsoft.ListManager.buildTuple(ListManager.java:111) at org.apache.tika.parser.microsoft.ListManager.getFormattedNumber(ListManager.java:86) at org.apache.tika.parser.microsoft.WordExtractor.handleParagraph(WordExtractor.java:278) at org.apache.tika.parser.microsoft.WordExtractor.parse(WordExtractor.java:169) at org.apache.tika.parser.microsoft.OfficeParser.parse(OfficeParser.java:146) at org.apache.tika.parser.microsoft.OfficeParser.parse(OfficeParser.java:117) -- This message was sent by Atlassian JIRA (v6.3.4#6332)