Uploaded image for project: 'Nutch'
  1. Nutch
  2. NUTCH-2072

Deflate encoding support is broken when http.content.limit is set to -1

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.11
    • plugin, protocol
    • None

    Description

      The method DeflateUtils.inflateBestEffort(byte[] in, int sizeLimit) is not designed to have sizeLimit set to a negative value.

      The fix can be simply to mimic what's done with gzip encoding : if getMaxContent() < 0 then use Integer.MAX_VALUE for the sizeLimit argument.

      Attachments

        Activity

          People

            chrismattmann Chris A. Mattmann
            tanguy Tanguy Moal
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: