Uploaded image for project: 'Commons Compress'
  1. Commons Compress
  2. COMPRESS-385

Add detect() to CompressorStreamFactory

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.14
    • None
    • None

    Description

      On TIKA-1631, several users have requested that we try to avoid an OOM when a corrupted Z file is "detected" by CompressorStreamFactory.

      In Tika, for detection, we're creating the stream via CompressorStreamFactory and then "detecting" based on what stream was created. Given that there can be some overhead in creating the stream and that there can be an OOM for a corrupt Z file, it would be great to add a detect(InputStream is) option in CompressorStreamFactory.

      PR on way.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tallison Tim Allison
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: