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

Tar has different mime type by name vs contents

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: mime
    • Labels:
      None

      Description

      TestMimeTypes.java#L360 has the following:

      assertTypeByName("application/x-tar",  "test.tar");
      assertTypeByData("application/x-gtar",  "test-documents.tar"); // GNU TAR
      

      The tar extension is detected as a application/x-tar by name, but a application-x-gtar by contents. This doesn't seem to match up.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              cpeters Collin Peters
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: