[
https://issues.apache.org/jira/browse/TIKA-1522?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14282874#comment-14282874
]
Nick Burch edited comment on TIKA-1522 at 1/19/15 7:08 PM:
-----------------------------------------------------------
For that file, I'm getting {{application/x-msdownload; format=pe32}} from Tika
App, which is a subtype of {{application/x-msdownload;format=pe}} which is a
subtype of {{application/x-msdownload}}
{{application/x-dosexec}} is the mimetype which has the {{.exe}} glob, and
that's also a subtype of {{application/x-msdownload}}
The problem is that a windows 32 bit DLL will also be detected as
{{application/x-msdownload; format=pe32}}, and that shouldn't be
{{application/x-dosexec}}
This might need some thought...
If anyone has some time, it'd be interesting to know what other mime-based
tools use for windows DLLs and EXEs
was (Author: gagravarr):
For that file, I'm getting {{{application/x-msdownload; format=pe32}}} from
Tika App, which is a subtype of {{{application/x-msdownload;format=pe}}} which
is a subtype of {{{application/x-msdownload}}}
{{{application/x-dosexec}}} is the mimetype which has the {{{.exe}}} glob, and
that's also a subtype of {{{application/x-msdownload}}}
The problem is that a windows 32 bit DLL will also be detected as
{{{application/x-msdownload; format=pe32}}}, and that shouldn't be
{{{application/x-dosexec}}}
This might need some thought...
> Exe being detected as application/x-msdownload
> ----------------------------------------------
>
> Key: TIKA-1522
> URL: https://issues.apache.org/jira/browse/TIKA-1522
> Project: Tika
> Issue Type: Bug
> Components: mime
> Affects Versions: 1.7
> Reporter: Luis Filipe Nassif
> Assignee: Nick Burch
> Priority: Minor
> Attachments: Search.exe
>
>
> If it is ok, *.exe must be included in application/x-msdownload glob pattern
> definitions. If it should be detected as application/x-dosexec, the hierarchy
> between application/x-dosexec, application/x-msdownload and PE based formats
> must be changed.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)