[
https://issues.apache.org/jira/browse/NUTCH-2606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16518338#comment-16518338
]
Sebastian Nagel commented on NUTCH-2606:
----------------------------------------
Need to check what's going wrong. Actually, Tika alone (here a 1.19 snapshot)
detects the content type correctly and consequently chooses the right parser:
{noformat}
% tika https://www.atnf.csiro.au/computing/software/gipsy/doc/update.doc
<?xml version="1.0" encoding="UTF-8"?><html
xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="X-Parsed-By" content="org.apache.tika.parser.DefaultParser"/>
<meta name="X-Parsed-By" content="org.apache.tika.parser.txt.TXTParser"/>
<meta name="Content-Encoding" content="ISO-8859-1"/>
<meta name="resourceName" content="update.doc"/>
<meta name="Content-Length" content="895"/>
<meta name="Content-Type" content="text/plain; charset=ISO-8859-1"/>
<title/>
</head>
<body><p>
Script: update
Purpose: Updates the GIPSY libraries and applications.
Category: MANAGEMENT
File: update.csh
Author: K.G. Begeman
Use: This shell script is executed by the atqueue or by crontab
script. When this script has completed the update, a message
is send to the GIPSY manager (see $gip_loc/manager), or if
there is no GIPSY manager found for this machine, to the
initiating user (usually gipsy).
The complete logfile is stored in $gip_loc/update.`hostname`.
Old executables older than 1 week are removed from $gip_exe.
Updates: Jul 23, 1991: KGB, Document created.
Mar 15, 1993: KGB, Logfile store in $gip_loc.
Jul 29, 1993: KGB, Check for existing log files.
Nov 10, 1998: JPT, Version number upgraded to 101.
</p>
</body></html>
{noformat}
> MIME detection is wrong for plain-text documents send as Content-Type
> "application/msword"
> ------------------------------------------------------------------------------------------
>
> Key: NUTCH-2606
> URL: https://issues.apache.org/jira/browse/NUTCH-2606
> Project: Nutch
> Issue Type: Bug
> Affects Versions: 1.14
> Reporter: Sebastian Nagel
> Priority: Minor
> Fix For: 1.16
>
>
> Plain-text documents send as Content-Type "application/msword" are tried to
> parse as Word documents. The MIME detection should be fixed, so that these
> are correctly identified as plain-text documents. See NUTCH-2603 and
> https://www.atnf.csiro.au/computing/software/gipsy/doc/update.doc
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)