[2.x] fix: Preserve ‘=’ in remote cache header values (#9534) Problem remoteCacheHeaders entries are parsed in GrpcActionCacheStore.AuthCallCredentials with h.split(“=”), which splits on every =. Java’s split discards trailing empty strings, so a Basic auth header such as authorization=Basic dXNlcjpwdw== produces exactly two elements and matches List(k, v) with the base64 padding silently removed. The truncated credential is rejected by the cache server with UNAUTHENTICATED. Solution Split on the first = only, keeping the remainder of the string verbatim as the header value. The error case narrows to a header containing no = at all. Generated-by: Claude Opus 5
[2.x] fix: Preserve ‘=’ in remote cache header values (#9534)
Problem remoteCacheHeaders entries are parsed in GrpcActionCacheStore.AuthCallCredentials with h.split(“=”), which splits on every =. Java’s split discards trailing empty strings, so a Basic auth header such as authorization=Basic dXNlcjpwdw== produces exactly two elements and matches List(k, v) with the base64 padding silently removed. The truncated credential is rejected by the cache server with UNAUTHENTICATED.
remoteCacheHeaders
Solution Split on the first = only, keeping the remainder of the string verbatim as the header value. The error case narrows to a header containing no = at all.
Generated-by: Claude Opus 5
sbt is a build tool for Scala, Java, and more.
For general documentation, see https://www.scala-sbt.org/.
This is the 2.x series of sbt. The source code of sbt is split across several GitHub repositories, including this one.
sbt.io
Please read CONTRIBUTING carefully before opening a GitHub Issue or a pull request.
If you’re looking for an idea for a contribution, issues labeled with good first issue or help wanted might be good starting points.
If you would like to ask questions about sbt, there’s sbt channel on Scala Discord, but it would be good to gather questions on Stackoverflow.
See LICENSE.
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802047560号
sbt
sbt is a build tool for Scala, Java, and more.
For general documentation, see https://www.scala-sbt.org/.
sbt 2.x
This is the 2.x series of sbt. The source code of sbt is split across several GitHub repositories, including this one.
sbt.iomodule.Other links
Issues and Pull Requests
Please read CONTRIBUTING carefully before opening a GitHub Issue or a pull request.
If you’re looking for an idea for a contribution, issues labeled with good first issue or help wanted might be good starting points.
If you would like to ask questions about sbt, there’s sbt channel on Scala Discord, but it would be good to gather questions on Stackoverflow.
license
See LICENSE.