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

IdentifyMimeType processor doesn't identify CSV files as text/csv

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.5.1
    • Fix Version/s: 0.6.0
    • Component/s: Core Framework
    • Labels:
      None

      Description

      The IdentifyMimeType processor doesn't identify CSV files as text/csv.

      As far as I can tell the reason is that the Tika Detector identifies some mime types just based on the input filename rather than the content. IdentifyMimeType doesn't appear to be passing in the filename to the metadata provided to the Detector when doing detection [1].

      1. https://github.com/apache/nifi/blob/master/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/IdentifyMimeType.java#L126

        Attachments

          Activity

            People

            • Assignee:
              mattyb149 Matt Burgess
              Reporter:
              jfrazee Joey Frazee
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: