Uploaded image for project: 'Tika'
  1. Tika
  2. TIKA-3575

Cannot use loadErrorHandler="ignore" in tika config

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0, 2.1.0
    • 2.2.0
    • config

    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

      There's no configuration option to restore the previous behavior. It should be possible to set

      <service-loader loadErrorHandler="ignore"/>
      

      but the code in org.apache.tika.config.TikaConfig#serviceLoaderFromDomElement only considers "warn" and "throw" as possible values.

       

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            ahubold Andreas Hubold
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: