You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Nikita Sheremet (JIRA)" <ji...@apache.org> on 2018/05/08 10:49:00 UTC

[jira] [Created] (TIKA-2642) Add possibility for SecureContentHandler settings

Nikita Sheremet created TIKA-2642:
-------------------------------------

             Summary: Add possibility for SecureContentHandler settings
                 Key: TIKA-2642
                 URL: https://issues.apache.org/jira/browse/TIKA-2642
             Project: Tika
          Issue Type: Improvement
          Components: parser
            Reporter: Nikita Sheremet


_org.apache.tika.sax.SecureContentHandler_ is used in _org.apache.tika.parser.AutoDetectParser_ to protect from zip bombs. But all of settings like:
 # threshold
 # ratio
 # maxDepth
 # maxPackageEntryDepth
 # ...

Are hardcoded into class fields. And it is impossible to disable or confugure such fields outside of _org.apache.tika.parser.AutoDetectParser#parse()_ method.

 

Could you pleas add abilitty to change these configs (from porperty file for example) and way to disable zip bom detection?



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