tika-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris A. Mattmann (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (TIKA-515) MimeType.getDescription() often returns nothing when "tika-mimetypes.xml" has a useful description already available.
Date Wed, 15 Sep 2010 04:07:38 GMT

     [ https://issues.apache.org/jira/browse/TIKA-515?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Chris A. Mattmann reassigned TIKA-515:
--------------------------------------

    Assignee: Chris A. Mattmann

> MimeType.getDescription() often returns nothing when "tika-mimetypes.xml" has a useful
description already available.
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: TIKA-515
>                 URL: https://issues.apache.org/jira/browse/TIKA-515
>             Project: Tika
>          Issue Type: Bug
>          Components: mime
>    Affects Versions: 0.7
>         Environment: ALL
>            Reporter: Miroslav Pokorny
>            Assignee: Chris A. Mattmann
>   Original Estimate: 0.25h
>  Remaining Estimate: 0.25h
>
> The reader that reads the XML and builds MimeTypes seem to be hard coded to the read
only a single element when another is often used to hold descriptions/comments..
> String COMMENT_TAG = "_comment";
> MimeTypesReader.readMimeType(Element element) throws MimeTypeException {
>                 if (nodeElement.getTagName().equals(COMMENT_TAG)) {
>                     type.setDescription(
>                             nodeElement.getFirstChild().getNodeValue());
> --xml sample #1--
> <mime-type type="application/msword">
>     <alias type="application/vnd.ms-word"/>
>     <comment>Microsoft Word Document</comment>
> notice "comment" not "_comment' element...
> Why not simply rename all "_comment" tags to _comment and update the constant and all
will be well.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message