You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Andreas Hubold (Jira)" <ji...@apache.org> on 2021/10/14 09:20:00 UTC
[jira] [Updated] (TIKA-3575) Cannot use loadErrorHandler="ignore"
in tika config
[ https://issues.apache.org/jira/browse/TIKA-3575?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Hubold updated TIKA-3575:
---------------------------------
Description:
Tika 2.0.0 changed the default error handler to throw exceptions, and does not ignore errors when loading parsers anymore as it was the case with Tika 1.x.
See [https://github.com/apache/tika/commit/e47c6cd62e587fdaae7e2e999f37122d09449754#diff-3955d56f4d95c6e600966c486c58f92483c900d32d553d18b3cf2940cbf2c768R470|https://github.com/apache/tika/commit/e47c6cd62e587fdaae7e2e999f37122d09449754#diff-3955d56f4d95c6e600966c486c58f92483c900d32d553d18b3cf2940cbf2c768R470]
There's no configuration option to restore the previous behavior. It should be possible to set
{code}
<service-loader loadErrorHandler="ignore"/>
{code}
but the code in org.apache.tika.config.TikaConfig#serviceLoaderFromDomElement only considers "warn" and "throw" as possible values.
was:
Tika 2.0.0 changed the default error handler to throw exceptions, and does not ignore errors when loading parsers anymore as it was the case with Tika 1.x.
See [https://github.com/apache/tika/commit/e47c6cd62e587fdaae7e2e999f37122d09449754#diff-3955d56f4d95c6e600966c486c58f92483c900d32d553d18b3cf2940cbf2c768R470|https://github.com/apache/tika/commit/e47c6cd62e587fdaae7e2e999f37122d09449754#diff-3955d56f4d95c6e600966c486c58f92483c900d32d553d18b3cf2940cbf2c768R470)]
There's no configuration option to restore the previous behavior. It should be possible to set
{code}
<service-loader loadErrorHandler="ignore"/>
{code}
but the code in org.apache.tika.config.TikaConfig#serviceLoaderFromDomElement only considers "warn" and "throw" as possible values.
> Cannot use loadErrorHandler="ignore" in tika config
> ---------------------------------------------------
>
> Key: TIKA-3575
> URL: https://issues.apache.org/jira/browse/TIKA-3575
> Project: Tika
> Issue Type: Bug
> Components: config
> Affects Versions: 2.0.0, 2.1.0
> Reporter: Andreas Hubold
> Priority: Major
> Labels: regression
>
> Tika 2.0.0 changed the default error handler to throw exceptions, and does not ignore errors when loading parsers anymore as it was the case with Tika 1.x.
> See [https://github.com/apache/tika/commit/e47c6cd62e587fdaae7e2e999f37122d09449754#diff-3955d56f4d95c6e600966c486c58f92483c900d32d553d18b3cf2940cbf2c768R470|https://github.com/apache/tika/commit/e47c6cd62e587fdaae7e2e999f37122d09449754#diff-3955d56f4d95c6e600966c486c58f92483c900d32d553d18b3cf2940cbf2c768R470]
> There's no configuration option to restore the previous behavior. It should be possible to set
> {code}
> <service-loader loadErrorHandler="ignore"/>
> {code}
> but the code in org.apache.tika.config.TikaConfig#serviceLoaderFromDomElement only considers "warn" and "throw" as possible values.
>
>
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)