[ 
https://issues.apache.org/jira/browse/NIFI-1617?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15191780#comment-15191780
 ] 

ASF GitHub Bot commented on NIFI-1617:
--------------------------------------

GitHub user jfrazee opened a pull request:

    https://github.com/apache/nifi/pull/273

    Added source filename metadata to IdentifyMimeType, fixes NIFI-1617

    Tika mime type Detector determines  mime type on the basis of filename 
extensions in some cases (e.g., CSV). This adds the FlowFile filename attribute 
to the Detector Metadata if it's available.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/jfrazee/nifi NIFI-1617

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/nifi/pull/273.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #273
    
----
commit 2ece5d7943f63258bd3dd9abc62aa734392ecce0
Author: Joey Frazee <[email protected]>
Date:   2016-03-10T22:49:59Z

    Added source filename metadata to IdentifyMimeType, fixes NIFI-1617

----


> IdentifyMimeType processor doesn't identify CSV files as text/csv
> -----------------------------------------------------------------
>
>                 Key: NIFI-1617
>                 URL: https://issues.apache.org/jira/browse/NIFI-1617
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>    Affects Versions: 0.5.1
>            Reporter: Joey Frazee
>            Priority: Minor
>
> 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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to