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

CompositeParser returns only one parser per content type

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.9.2
    • None
    • core
    • None

    Description

      External parsers can have many supported content types, but information is lost in CompositeParser:
       
      public Map<MediaType, Parser> getParsers(ParseContext context) {
        Map<MediaType, Parser> map = new HashMap<>();
        for (Parser parser : parsers) {
          for (MediaType type : parser.getSupportedTypes(context))

      {        map.put(registry.normalize(type), parser); }

         }
         return map;
      }
       
      To recreate - parse any avi file (content type: video/x-msvideo), Only the exiftool will by picked up and the ffmpeg parser won't be executed.

      Attachments

        1. geolocation-test-2.jpg
          158 kB
          Leszek Sliwko
        2. geolocation-test-1.jpg
          254 kB
          Leszek Sliwko
        3. duration-test-2.avi
          283 kB
          Leszek Sliwko

        Activity

          People

            Unassigned Unassigned
            lsliwko Leszek Sliwko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: