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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

JIRA jira@apache.org
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)