Uploaded image for project: 'Tika'
  1. Tika
  2. TIKA-2642

Add possibility for SecureContentHandler settings

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • parser
    • None

    Description

      org.apache.tika.sax.SecureContentHandler is used in org.apache.tika.parser.AutoDetectParser to protect from zip bombs. But all of settings like:

      1. threshold
      2. ratio
      3. maxDepth
      4. maxPackageEntryDepth
      5. ...

      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?

      Attachments

        Activity

          People

            Unassigned Unassigned
            nsheremet Nikita Sheremet
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: