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

Tika config xml shouldn't read nested parser definitions as top level

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: 1.10
    • Component/s: config
    • Labels:
      None

      Description

      Spotted while looking at TIKA-1642, if you have some Tika config xml like:

      <properties>
        <parsers>
          <parser class="org.apache.tika.parser.ctakes.CTAKESParser">
             <parser class="org.apache.tika.parser.DefaultParser"/>
          </parser>
        </parsers>
      </properties>
      

      Then because of the way that TikaConfig is fetching the elements, it will process the DefaultParser once as a child of CTakes, then a second time at the top level

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              nick Nick Burch
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: