Skip to content

[9.0.0] Upstream Apache GZip breaks http_archive #28454

@donkahlero

Description

@donkahlero

Description of the bug:

After upgrading to bazel 9.0.0 we are facing the following issue, when downloading a helm-Chart via http_archive:

ERROR: /Users/jonas/Library/Caches/bazel/_bazel_jonas/02009a050ebeaf7a14a49fff15dd1833/external/bazel_tools/tools/build_defs/repo/http.bzl:200:45: An error occurred during the fetch of repository '+http_archive+bitnami_postgresql':
   Traceback (most recent call last):
        File "/Users/jonas/Library/Caches/bazel/_bazel_jonas/02009a050ebeaf7a14a49fff15dd1833/external/bazel_tools/tools/build_defs/repo/http.bzl", line 200, column 45, in _http_archive_impl
                download_info = ctx.download_and_extract(
Error in download_and_extract: java.io.IOException: Error extracting /Users/jonas/Library/Caches/bazel/_bazel_jonas/02009a050ebeaf7a14a49fff15dd1833/external/+http_archive+bitnami_postgresql/temp898750794062854888/postgresql-15.2.8.tgz to /Users/jonas/Library/Caches/bazel/_bazel_jonas/02009a050ebeaf7a14a49fff15dd1833/external/+http_archive+bitnami_postgresql/temp898750794062854888: Extra subfield lenght exceeds remaining bytes in extra: 21064 > 37
ERROR: no such package '@@+http_archive+bitnami_postgresql//': java.io.IOException: Error extracting /Users/jonas/Library/Caches/bazel/_bazel_jonas/02009a050ebeaf7a14a49fff15dd1833/external/+http_archive+bitnami_postgresql/temp898750794062854888/postgresql-15.2.8.tgz to /Users/jonas/Library/Caches/bazel/_bazel_jonas/02009a050ebeaf7a14a49fff15dd1833/external/+http_archive+bitnami_postgresql/temp898750794062854888: Extra subfield lenght exceeds remaining bytes in extra: 21064 > 37
ERROR: /Users/jonas/repos/batman/btm/charts/postgresql/BUILD.bazel:3:13: //charts/postgresql:package depends on @@+http_archive+bitnami_postgresql//:chart in repository @@+http_archive+bitnami_postgresql which failed to fetch. no such package '@@+http_archive+bitnami_postgresql//': java.io.IOException: Error extracting /Users/jonas/Library/Caches/bazel/_bazel_jonas/02009a050ebeaf7a14a49fff15dd1833/external/+http_archive+bitnami_postgresql/temp898750794062854888/postgresql-15.2.8.tgz to /Users/jonas/Library/Caches/bazel/_bazel_jonas/02009a050ebeaf7a14a49fff15dd1833/external/+http_archive+bitnami_postgresql/temp898750794062854888: Extra subfield lenght exceeds remaining bytes in extra: 21064 > 37

This seems to be connected to COMPRESS-705. Thought, I'd let you guys know.

Which category does this issue belong to?

Core

What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

Download helm-Chart via http_archive.

Which operating system are you running Bazel on?

macOS

What is the output of bazel info release?

release 9.0.0

Have you found anything relevant by searching the web?

COMPRESS-705

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1I'll work on this now. (Assignee required)team-ExternalDepsExternal dependency handling, remote repositiories, WORKSPACE file.type: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions