[ 
https://issues.apache.org/jira/browse/TIKA-2856?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16821209#comment-16821209
 ] 

Roberto Benedetti edited comment on TIKA-2856 at 4/18/19 3:09 PM:
------------------------------------------------------------------

I think this is a duplicate of [TIKA-1997]. The problem is that the output file 
is 100 bytes only and the regular expression currently used to detect pkcs7 
files does not take into account the encoding of small files. The pull request 
I submitted should fix this issue.


was (Author: roberto.benedetti):
I think this is a duplicate of [#TIKA-1997]. The problem is that the output 
file is 100 bytes only and the regular expression currently used to detect 
pkcs7 files does not take into account the encoding of small files. The pull 
request I submitted should fix this issue.

> Cannot detect digest PKCS7 file
> -------------------------------
>
>                 Key: TIKA-2856
>                 URL: https://issues.apache.org/jira/browse/TIKA-2856
>             Project: Tika
>          Issue Type: Bug
>          Components: detector
>    Affects Versions: 1.20
>            Reporter: Chinh Nguyen
>            Priority: Minor
>
> * Create a digest file. For example, {{echo "hello world" | openssl cms 
> -digest_create -md sha256 -outform der -out digest.p7}}
> * Try to detect with tika {{java  -jar tika-app-1.20.jar -d digest.p7}}
> * It will be reported as application/octet-stream



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to