tika-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (TIKA-1335) mime type for CSV files incorrectly detected as text/plain
Date Fri, 13 Jun 2014 10:04:02 GMT

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

Hudson commented on TIKA-1335:
------------------------------

SUCCESS: Integrated in tika-trunk-jdk1.6 #43 (See [https://builds.apache.org/job/tika-trunk-jdk1.6/43/])
Add a test CSV file, based on the Excel one, and a unit test shows it gets detected correctly.
Also mark CSV as explicitly being a child of text/plain, rather than the previous implicit
definition, to avoid confusion. TIKA-1335 (nick: http://svn.apache.org/viewvc/tika/trunk/?view=rev&rev=1602352)
* /tika/trunk/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml
* /tika/trunk/tika-parsers/src/test/java/org/apache/tika/mime/TestMimeTypes.java
* /tika/trunk/tika-parsers/src/test/resources/test-documents/testCSV.csv


> mime type for CSV files incorrectly detected as text/plain
> ----------------------------------------------------------
>
>                 Key: TIKA-1335
>                 URL: https://issues.apache.org/jira/browse/TIKA-1335
>             Project: Tika
>          Issue Type: Bug
>          Components: mime
>    Affects Versions: 1.5, 1.6
>            Reporter: Kaijian Xu
>            Assignee: Chris A. Mattmann
>         Attachments: CDEC_WEATHER_2010_03_02, foo.csv, velocity.csv
>
>
> Mime type autodetection returns "text/plain" for CSV files, for example:
> % tika -m foo.csv
> Content-Encoding: ISO-8859-1
> Content-Length: 78
> Content-Type: text/plain; charset=ISO-8859-1
> resourceName: foo.csv
> This occurs regardless of whether the filename has the appropriate *.csv extension or
not.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message