[
https://issues.apache.org/jira/browse/TIKA-1529?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14289311#comment-14289311
]
Tim Allison commented on TIKA-1529:
-----------------------------------
For UnsupportedEncodingException, Lucene/Solr handles this in different ways:
{noformat}
try {
out = new PrintStream(bos, false, IOUtils.UTF_8);
} catch (UnsupportedEncodingException bogus) {
throw new RuntimeException(bogus);
}
{noformat}
or
{noformat}
} catch (UnsupportedEncodingException e) {
}
{noformat}
or
{noformat}
} catch (UnsupportedEncodingException e) {
throw new Error("JVM Does not seem to support UTF-8", e);
}
{noformat}
What's our preference?
> Turn forbidden-apis back on
> ---------------------------
>
> Key: TIKA-1529
> URL: https://issues.apache.org/jira/browse/TIKA-1529
> Project: Tika
> Issue Type: Bug
> Reporter: Tim Allison
> Priority: Minor
>
> [~thetaphi] recently noticed that forbidden-apis was turned off in r1624185,
> and he submitted a patch to the dev list. Let's turn it back on.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)