You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Tim Allison (Jira)" <ji...@apache.org> on 2023/05/12 19:22:00 UTC

[jira] [Commented] (TIKA-4039) Make max byte array parameter in Unrar parser configurable

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

Tim Allison commented on TIKA-4039:
-----------------------------------

This limitation actually comes from the /unpack endpoint and is file type independent.  Maybe add configuration via a header or more generally via the tika-config in the server section: https://cwiki.apache.org/confluence/display/TIKA/TikaServer+in+Tika+2.x ?

<server>
  <unpack_max_bytes>...<...

> Make max byte array parameter in Unrar parser configurable
> ----------------------------------------------------------
>
>                 Key: TIKA-4039
>                 URL: https://issues.apache.org/jira/browse/TIKA-4039
>             Project: Tika
>          Issue Type: Improvement
>          Components: config, parser
>    Affects Versions: 2.7.0
>            Reporter: Shay barak
>            Priority: Blocker
>         Attachments: tika-config.xml
>
>
> Adding the option to override the maximum bytes that Unrar parser can handle
> so I would not get the TikaMemoryLimitException.
> Wish to have the configuration to look like this:
> <parser class="org.apache.tika.parser.pkg.UnrarParser">
>             <params>
>                 <param name="byteArrayMaxOverride" type="int">1000000000</param>
>             </params>
> </parser>



--
This message was sent by Atlassian Jira
(v8.20.10#820010)