aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/remote
diff options
context:
space:
mode:
authorGravatar nicolov <nicolov@users.noreply.github.com>2017-11-29 08:40:19 -0800
committerGravatar Copybara-Service <copybara-piper@google.com>2017-11-29 08:42:21 -0800
commitf4486e26146c07f021b44dc8ac58a627e120a58e (patch)
tree423ac6f623e9a2fc0c2c329546c50ef110afce7b /src/main/java/com/google/devtools/build/lib/remote
parent1e3d568ea68e3d4b597dd40e6100295548f44e8a (diff)
RestBlobStore: add missing CAS_PREFIX
According to the SimpleBlobStore interface `containsKey` should look up blobs in the CAS. However, the URL it requests is missing `CAS_PREFIX`, so it will never find anything. Closes #4118. PiperOrigin-RevId: 177313658
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/remote')
-rw-r--r--src/main/java/com/google/devtools/build/lib/remote/blobstore/RestBlobStore.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/remote/blobstore/RestBlobStore.java b/src/main/java/com/google/devtools/build/lib/remote/blobstore/RestBlobStore.java
index 9796554480..43b90a5eda 100644
--- a/src/main/java/com/google/devtools/build/lib/remote/blobstore/RestBlobStore.java
+++ b/src/main/java/com/google/devtools/build/lib/remote/blobstore/RestBlobStore.java
@@ -79,7 +79,7 @@ public final class RestBlobStore implements SimpleBlobStore {
@Override
public boolean containsKey(String key) throws IOException {
HttpClient client = clientFactory.build();
- HttpHead head = new HttpHead(baseUrl + "/" + key);
+ HttpHead head = new HttpHead(baseUrl + "/" + CAS_PREFIX + "/" + key);
return client.execute(
head,
response -> {