[jira] [Commented] (TIKA-2977) Tika should throw an exception if a custom parser specified in tika-config.xml can't be loaded

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (TIKA-2977) Tika should throw an exception if a custom parser specified in tika-config.xml can't be loaded

Tim Allison (Jira)

    [ https://issues.apache.org/jira/browse/TIKA-2977?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16962116#comment-16962116 ]

Tim Allison commented on TIKA-2977:
-----------------------------------

We have unit tests for exactly this from TIKA-1700, but it doesn't seem to be applied in tika-app nor tika-server.

> Tika should throw an exception if a custom parser specified in tika-config.xml can't be loaded
> ----------------------------------------------------------------------------------------------
>
>                 Key: TIKA-2977
>                 URL: https://issues.apache.org/jira/browse/TIKA-2977
>             Project: Tika
>          Issue Type: Improvement
>            Reporter: Tim Allison
>            Assignee: Tim Allison
>            Priority: Major
>
> If you start tika-server and specify a custom parser class in tika-config _but_ you don't then include that jar on the classpath, tika-server silently fails.  
> I initially thought that we should make sure that it respects the service loader problem handler (e.g. <service-loader initializableProblemHandler="throw"/>), but this isn't service loading.  If a user specifies a parser that can't be loaded, we should throw an exception.  WDYT?
> This also affects tika-app in regular and batch mode.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)