Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-1335

Make UnpackContent recognize tar mime type from DetectMimeType

    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.5.0
    • Component/s: None
    • Labels:
      None

      Description

      While creating a pipeline using a DetectMimeType and UnpackContent processor, I noticed that the UnpackContent expects application/tar inside of the mime.attribute for tar archives, which is not correct. The Apache Tika project actually produces (1) application/x-tar.

      (1): https://tika.apache.org/1.11/api/org/apache/tika/server/writer/TarWriter.html

      This fix should be fairly simple. I propose we modify the UnpackContent processor to accept both application/tar and application/x-tar to ensure backwards compatibility with previous workflows.

        Attachments

          Activity

            People

            • Assignee:
              rickysaltzer Ricky Saltzer
              Reporter:
              rickysaltzer Ricky Saltzer
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: