This is an automated email from the ASF dual-hosted git repository. tballison pushed a commit to branch TIKA-4826 in repository https://gitbox.apache.org/repos/asf/tika.git
commit 1d939deb55c1ae1b0d5bab1d39d627cb4656bf10 Merge: 38f7530693 1e3d8f8883 Author: tallison <[email protected]> AuthorDate: Tue Sep 1 17:26:41 2026 -0400 Merge remote-tracking branch 'origin/main' into TIKA-4826 CHANGES.txt | 13 + .../microsoft/POIContainerExtractionTest.java | 14 +- .../parser/microsoft/AbstractMetafileParser.java | 74 +++++ .../apache/tika/parser/microsoft/EMFParser.java | 40 ++- .../parser/microsoft/MetafileParserConfig.java | 104 +++++++ .../tika/parser/microsoft/MetafileRendering.java | 183 ++++++++++++ .../apache/tika/parser/microsoft/OfficeParser.java | 33 ++- .../tika/parser/microsoft/OfficeParserConfig.java | 15 + .../tika/parser/microsoft/SummaryExtractor.java | 31 ++ .../apache/tika/parser/microsoft/WMFParser.java | 38 ++- .../renderer/microsoft/POIMetafileRenderer.java | 311 +++++++++++++++++++++ .../tika/parser/microsoft/EMFParserTest.java | 161 +++++++++++ .../tika/parser/microsoft/OLE2ThumbnailTest.java | 146 ++++++++++ .../parser/microsoft/PowerPointParserTest.java | 6 +- .../tika/parser/microsoft/WMFParserTest.java | 56 ++++ .../resources/configs/tika-config-emf-render.json | 11 + 16 files changed, 1224 insertions(+), 12 deletions(-) diff --cc CHANGES.txt index 097ca38851,80e898aa72..41d824ec04 --- a/CHANGES.txt +++ b/CHANGES.txt @@@ -1,17 -1,18 +1,30 @@@ Release 4.1.0 - unreleased + * Raster previews for the vector thumbnails of Office documents: the new + poi-metafile-renderer draws EMF and WMF images through POI (a PNG of + a configurable width; Word's bitmap-in-WMF thumbnails from the bitmap + directly), EMFParser and WMFParser are RenderingParsers that emit the + rendering as a RENDERING embedded document with "emf-parser" / + "wmf-parser": {"renderImage": true, "renderWidth": 800}, off by + default and restrictable to e.g. THUMBNAIL embedded documents with + "renderOnlyEmbeddedResourceTypes", and OfficeParser emits the + SummaryInformation thumbnail of the OLE2 formats (a WMF) as a THUMBNAIL + embedded document, as the OOXML parsers do with the docProps thumbnail, + switchable with "office-parser": {"extractThumbnail": false} + (TIKA-4855). + + * Content-type hints from untrusted input (request headers, document + metadata) are no longer interned into the shared MimeTypes registry + during detection and extension lookup, closing a slow unbounded + memory growth path. MimeTypes.forName is deprecated (unchanged + behavior) in favor of forNameAndRegister, which names the + registration side effect, and getRegisteredMimeType for + side-effect-free lookups; forName will be removed in Tika 5. + Extension lookup now resolves parameterized content types to their + base type, so a type such as "text/plain; charset=UTF-8" yields + ".txt" where it previously yielded ".bin"; this can change the + names written for embedded documents (TIKA-4826). + * Add "exception-reporting" parse-context config to redact and bound exception text in metadata, tika-server error bodies and pipes/grpc messages; FileSystemEmitter writes atomically (TIKA-4848).
