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

Compressed content skipped. Content of size 78 was truncated to 74

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4
    • Fix Version/s: 2.4
    • Component/s: None
    • Labels:
      None
    • Patch Info:
      Patch Available
    • Flags:
      Patch

      Description

      gzip or deflate compressed content fails to parse with a message like:

      WARN  parse.ParserJob - https://rustyx.org/temp/index%20bbb skipped. Content of size 78 was truncated to 74

      The root cause is that the original (compressed) Content-Length is stored in the headers, while the content is stored uncompressed. Subsequently the Content-Length doesn't match the stored content size.

      See attached patch that fixed the issue by removing Content-Length from the headers if it contains compressed value.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rustyx Rustam

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment