[
https://issues.apache.org/jira/browse/TIKA-3489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17385061#comment-17385061
]
Hudson commented on TIKA-3489:
------------------------------
FAILURE: Integrated in Jenkins build Tika ยป tika-main-jdk8 #286 (See
[https://ci-builds.apache.org/job/Tika/job/tika-main-jdk8/286/])
TIKA-3489 -- add mime detection for robots.txt files (tallison:
[https://github.com/apache/tika/commit/5e2a3c081b3867086e417cb5cb032cb12be3c19d])
* (edit) tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml
* (add)
tika-parsers/tika-parsers-standard/tika-parsers-standard-package/src/test/resources/test-documents/testRobots.txt
* (edit)
tika-parsers/tika-parsers-standard/tika-parsers-standard-package/src/test/java/org/apache/tika/mime/TestMimeTypes.java
> Robots.txt files frequently identified as message/rfc822
> --------------------------------------------------------
>
> Key: TIKA-3489
> URL: https://issues.apache.org/jira/browse/TIKA-3489
> Project: Tika
> Issue Type: Bug
> Components: mime
> Affects Versions: 2.0.0, 1.25, 1.26, 1.27
> Reporter: Sebastian Nagel
> Priority: Minor
> Attachments: robots.txt
>
>
> The Tika MIME detector recognizes a robots.txt file as "message/rfc822" if
> the file starts with a "User-Agent" rule and contains also a second rule not
> too far away from the beginning, e.g.:
> {noformat}
> User-Agent: goodbot
> Disallow:
> User-Agent: badbot
> Disallow: /
> {noformat}
> The change
> [7769a2b|https://github.com/apache/tika/commit/7769a2b4fba2b4af7127eba0c7694f663fd97a13]
> requires that two different clauses are matched. However, the two
> occurrences of "User-Agent:" (initial and after a new line) are treated as
> different instead of equivalent matches.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)