You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Samuel Ottenhoff (JIRA)" <ji...@apache.org> on 2015/06/23 00:25:01 UTC

[jira] [Commented] (TIKA-1141) javascript files that contain "
    [ https://issues.apache.org/jira/browse/TIKA-1141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14596761#comment-14596761 ] 

Samuel Ottenhoff commented on TIKA-1141:
----------------------------------------

Here is an easy file to replicate the issue with:

  http://code.jquery.com/jquery-1.6.1.js

Line 8540 contains:

{code}
  iframeDoc.write( "<!doctype><html><body></body></html>" );
{code}

We are tracking this bug in our open-source learning management system Sakai here:

  https://jira.sakaiproject.org/browse/KNL-1306

> javascript files that contain "<html" are detected as text/html
> ---------------------------------------------------------------
>
>                 Key: TIKA-1141
>                 URL: https://issues.apache.org/jira/browse/TIKA-1141
>             Project: Tika
>          Issue Type: Bug
>          Components: mime
>    Affects Versions: 1.2
>            Reporter: David Hara
>            Priority: Minor
>
> The Mimetypes detector will return text/html as the mimetype for any javascript file that contains the string "<html" in it. I believe this is due to the rule <match value="&lt;html" type="string" offset="0:8192"/> in the tika-mimetypes.xml file.



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