Skip to content
This repository was archived by the owner on Jun 20, 2023. It is now read-only.

Commit eacb040

Browse files
committed
Remove call to System.clearProperty("sun.font.fontmanager");
This has been fixed in Tika 1.8. See https://issues.apache.org/jira/browse/TIKA-1548 We can now remove that call in `AttachmentMapper` class. Closes #174.
1 parent 5b6c872 commit eacb040

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/main/java/org/elasticsearch/index/mapper/attachment/AttachmentMapper.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -496,10 +496,6 @@ public Mapper parse(ParseContext context) throws IOException {
496496
// Set the maximum length of strings returned by the parseToString method, -1 sets no limit
497497
parsedContent = tika.parseToString(StreamInput.wrap(content), metadata, indexedChars);
498498
} catch (Throwable e) {
499-
// It could happen that Tika adds a System property `sun.font.fontmanager` which should not happen
500-
// TODO Remove when this will be fixed in Tika. See https://issues.apache.org/jira/browse/TIKA-1548
501-
System.clearProperty("sun.font.fontmanager");
502-
503499
// #18: we could ignore errors when Tika does not parse data
504500
if (!ignoreErrors) {
505501
logger.trace("exception caught", e);

0 commit comments

Comments
 (0)