You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nutch.apache.org by "Tanguy Moal (JIRA)" <ji...@apache.org> on 2015/07/30 11:23:04 UTC
[jira] [Updated] (NUTCH-2072) Deflate encoding support is broken
when http.content.limit is set to -1
[ https://issues.apache.org/jira/browse/NUTCH-2072?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tanguy Moal updated NUTCH-2072:
-------------------------------
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.
was:
The method {{DeflateUtils.inflateBestEffort(byte[] in, int sizeLimit)}} is 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.
> Deflate encoding support is broken when http.content.limit is set to -1
> -----------------------------------------------------------------------
>
> Key: NUTCH-2072
> URL: https://issues.apache.org/jira/browse/NUTCH-2072
> Project: Nutch
> Issue Type: Bug
> Components: plugin, protocol
> Reporter: Tanguy Moal
> Priority: Minor
>
> 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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)