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

Add detect() to CompressorStreamFactory

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.14
    • Component/s: None
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: