[
https://issues.apache.org/jira/browse/TIKA-4217?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17829652#comment-17829652
]
Hudson commented on TIKA-4217:
------------------------------
SUCCESS: Integrated in Jenkins build Tika ยป tika-main-jdk11 #1565 (See
[https://ci-builds.apache.org/job/Tika/job/tika-main-jdk11/1565/])
TIKA-4217 -- require new line or white space as part of bitmap magic (#1674)
(github:
[https://github.com/apache/tika/commit/08727d5224f7c663a19c572154939a2c140a6773])
* (edit) tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml
> Require newline in image/x-portable-graymap and image/x-portable-bitmap magic
> -----------------------------------------------------------------------------
>
> Key: TIKA-4217
> URL: https://issues.apache.org/jira/browse/TIKA-4217
> Project: Tika
> Issue Type: Improvement
> Reporter: Tim Allison
> Priority: Minor
> Fix For: 2.9.2, 3.0.0
>
>
> On the user list, Kashif Khan noted that some text files were being
> mis-identified as portable image files because our magic is only checking for
> the first two characters for some of our patterns. However, for others, we're
> requiring a newline character at the end.
> I _think_ (based on https://github.com/Traperto/magic-bytes-validator) and
> our existing patterns that we can make our mime patterns a bit stricter by
> requiring the \n after all the patterns.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)