[
https://issues.apache.org/jira/browse/TIKA-3960?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17706115#comment-17706115
]
Hudson commented on TIKA-3960:
------------------------------
FAILURE: Integrated in Jenkins build Tika ยป tika-main-jdk8 #1073 (See
[https://ci-builds.apache.org/job/Tika/job/tika-main-jdk8/1073/])
[TIKA-3960] add magic match for application/pgp-encrypted (#1041) (github:
[https://github.com/apache/tika/commit/2ccd669b3ef679d8dba073533ba7e375dca2592c])
* (add)
tika-parsers/tika-parsers-standard/tika-parsers-standard-package/src/test/resources/test-documents/testPGPEncrypted.gpg
* (edit)
tika-parsers/tika-parsers-standard/tika-parsers-standard-package/src/test/java/org/apache/tika/mime/TestMimeTypes.java
* (edit) tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml
> PGP encrypted files get detected as application/octet-stream
> ------------------------------------------------------------
>
> Key: TIKA-3960
> URL: https://issues.apache.org/jira/browse/TIKA-3960
> Project: Tika
> Issue Type: Bug
> Components: detector
> Affects Versions: 2.7.0
> Reporter: Tayseer Sabha
> Priority: Major
> Fix For: 2.7.1
>
>
> We use Tika for detecting and validating uploaded files using their
> content/magic bytes and not only their names/extension.
> Passing a PGP/GPG encrypted file to Tika.detect(InputStream stream) will
> always return application/octet-stream instead of application/pgp-encrypted
> defined in tika-mimetypes.xml
> The issue occurs because the application/pgp-encrypted mime-type defined in
> tika-mimetypes.xml is lacking a magic match and only has <glob
> pattern="*.pgp"/>
> I managed to fix the issue for us temporarily by adding
> application/pgp-encrypted including a magic match in our custom-mimetypes.xml
> file. I will create a Pull Request on Github with the fix to resolve the
> issue.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)