You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Julian Reschke (Jira)" <ji...@apache.org> on 2021/02/08 18:46:00 UTC

[jira] [Comment Edited] (JCR-4551) Use the normalized MediaType to check if the given MediaType should be indexed

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

Julian Reschke edited comment on JCR-4551 at 2/8/21, 6:45 PM:
--------------------------------------------------------------

trunk: (2.21.1) [r1876287|http://svn.apache.org/r1876287]
2.20: (2.20.1) [r1877616|http://svn.apache.org/r1877616]
2.16: (2.16.7) [r1881166|http://svn.apache.org/r1881166]
2.14: [r1886332|http://svn.apache.org/r1886332]

...in retired branches:
2.18: (2.18.6) [r1878604|http://svn.apache.org/r1878604]



was (Author: reschke):
trunk: (2.21.1) [r1876287|http://svn.apache.org/r1876287]
2.20: (2.20.1) [r1877616|http://svn.apache.org/r1877616]
2.18: (2.18.6) [r1878604|http://svn.apache.org/r1878604]
2.16: [r1881166|http://svn.apache.org/r1881166]


> Use the normalized MediaType to check if the given MediaType should be indexed
> ------------------------------------------------------------------------------
>
>                 Key: JCR-4551
>                 URL: https://issues.apache.org/jira/browse/JCR-4551
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: jackrabbit-core
>            Reporter: Claus Köll
>            Assignee: Claus Köll
>            Priority: Major
>              Labels: candidate_jcr_2_12
>             Fix For: 2.14.9, 2.20.1, 2.22, 2.21.1, 2.18.6, 2.16.7
>
>
> We have configured some MimeTypes in the tika.config File as following ...
> {code:java}
> <parser name="parse-office" class="org.apache.tika.parser.microsoft.OfficeParser">   
>   <mime>application/msword</mime> 
>   <mime>application/vnd.ms-excel</mime> 
>   <mime>application/msexcel</mime> 
>   <mime>application/vnd.ms-powerpoint</mime>
> </parser>
> {code}
> As we have old Excel Files with Mimetype (application/msexcel) it should be parsed with the OfficeParser. Tika internally converts (normalizse) this MimeType with the MediaTypeRegistry to application/vnd.ms-excel.
> The NodeIndexer should also use the normalized MediaType in #isSupportedMediaType(String type)
> Otherwise the old MimeTypes will not be indexed anymore.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)