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

AsyncParser and EmitterResource have handler type hardcoded to text

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.0.0
    • tika-pipes
    • None

    Description

      All calls to  RecursiveMetadataResource.parseMetadata have text hardcoded as handlerTypeName while it should be dynamic.

      AsyncParser worker threads process FetchEmitTuple objects asynchronously and by then the http headers are not available. An idea to make the handlerTypeName dynamic could be to add it to the configuration of the emitter (so directly into FetchEmitTuple).

      EmitterResource on the other hand, could take the handlerTypeName as PathParam (just as it is in TikeResource).

      What do you think about this reasoning? If this is acceptable I could work on PR

      Attachments

        Activity

          People

            tallison Tim Allison
            zxxz_ Giovanni De Stefano
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: