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

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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.9
    • 1.10
    • config
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment