https://bz.apache.org/bugzilla/show_bug.cgi?id=59739

            Bug ID: 59739
           Summary: Need to expand options in
                    FileInformationBlock.assertCbRgFcLcb
           Product: POI
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: major
          Priority: P2
         Component: HWPF
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 33970
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=33970&action=edit
triggering file

In tightening up the codebase based on FindBugs results[0], we're now throwing
an IllegalStateException if the FileInformationBlock doesn't match one of 5
patterns.

A test file in Tika's test suite is now getting:

Caused by: java.lang.IllegalStateException: Invalid file format version number:
195
    at
org.apache.poi.hwpf.model.FileInformationBlock.assertCbRgFcLcb(FileInformationBlock.java:164)
    at
org.apache.poi.hwpf.model.FileInformationBlock.<init>(FileInformationBlock.java:140)
    at org.apache.poi.hwpf.HWPFDocumentCore.<init>(HWPFDocumentCore.java:163)
    at org.apache.poi.hwpf.HWPFDocument.<init>(HWPFDocument.java:197)
    at
org.apache.tika.parser.microsoft.WordExtractor.parse(WordExtractor.java:144)
    at
org.apache.tika.parser.microsoft.OfficeParser.parse(OfficeParser.java:146)
    at
org.apache.tika.parser.microsoft.OfficeParser.parse(OfficeParser.java:117)
    at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:280)
    ... 34 more

[0]http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/model/FileInformationBlock.java?r1=1557290&r2=1738782

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to