Bug 47517 - [PATCH] Extractor does not support XLTX and DOTX files
Summary: [PATCH] Extractor does not support XLTX and DOTX files
Status: RESOLVED FIXED
Alias: None
Product: POI
Classification: Unclassified
Component: POI Overall (show other bugs)
Version: 3.5-dev
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
: 45560 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-07-13 05:31 UTC by Maxim Valyanskiy
Modified: 2009-07-18 02:40 UTC (History)
1 user (show)



Attachments
patch (5.16 KB, patch)
2009-07-13 05:32 UTC, Maxim Valyanskiy
Details | Diff
src/scratchpad/testcases/org/apache/poi/hwpf/data/test.dotx (9.77 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.template)
2009-07-13 05:34 UTC, Maxim Valyanskiy
Details
src/testcases/org/apache/poi/hssf/data/test.xltx (8.37 KB, application/vnd.openxmlformats-officedocument.spreadsheetml.template)
2009-07-13 05:35 UTC, Maxim Valyanskiy
Details
Additional patch that adds more mime-types (3.78 KB, patch)
2009-07-16 02:50 UTC, Maxim Valyanskiy
Details | Diff
and more mime types (2.69 KB, patch)
2009-07-17 02:52 UTC, Maxim Valyanskiy
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Maxim Valyanskiy 2009-07-13 05:31:07 UTC
No supported documents found in the OOXML package
java.lang.IllegalArgumentException: No supported documents found in the OOXML package
        at org.apache.poi.extractor.ExtractorFactory.createExtractor(ExtractorFactory.java:108)
        at org.apache.poi.extractor.ExtractorFactory.createExtractor(ExtractorFactory.java:70)
        at org.apache.poi.extractor.TestExtractorFactory.testFile(TestExtractorFactory.java:112)

Patch and testcase attached
Comment 1 Maxim Valyanskiy 2009-07-13 05:32:04 UTC
Created attachment 23964 [details]
patch
Comment 2 Maxim Valyanskiy 2009-07-13 05:34:56 UTC
Created attachment 23965 [details]
src/scratchpad/testcases/org/apache/poi/hwpf/data/test.dotx
Comment 3 Maxim Valyanskiy 2009-07-13 05:35:20 UTC
Created attachment 23966 [details]
src/testcases/org/apache/poi/hssf/data/test.xltx
Comment 4 Maxim Valyanskiy 2009-07-16 02:50:07 UTC
Created attachment 23991 [details]
Additional patch that adds more mime-types
Comment 5 Maxim Valyanskiy 2009-07-17 02:52:24 UTC
Created attachment 24002 [details]
and more mime types
Comment 6 Yegor Kozlov 2009-07-18 02:29:46 UTC
Applied in r795327

Thanks,
Yegor
Comment 7 Yegor Kozlov 2009-07-18 02:40:56 UTC
*** Bug 45560 has been marked as a duplicate of this bug. ***