bazel icon indicating copy to clipboard operation
bazel copied to clipboard

Symlinks in zip archives are incorrectly rejected

Open zrlk opened this issue 8 years ago • 1 comments

Description of the problem / feature request:

If an http_archive pulls in a zip that contains a relative symlink (a/b/c points to ../d/e), Bazel rejects it outright ("Zip entries cannot refer to files outside of their directory").

What operating system are you running Bazel on?

Debian.

What's the output of bazel info release?

release 0.9.0

Have you found anything relevant by searching the web?

https://github.com/bazelbuild/bazel/blob/a729b9b4c3d7844a7d44934bf3365f92633c0a60/src/main/java/com/google/devtools/build/lib/bazel/repository/ZipDecompressor.java#L103 contains the overzealous check.

zrlk avatar Mar 15 '18 19:03 zrlk

Fixed somewhere at or before 0.11.1.

zrlk avatar Mar 15 '18 19:03 zrlk