diff options
author | 2017-11-29 08:40:19 -0800 | |
---|---|---|
committer | 2017-11-29 08:42:21 -0800 | |
commit | f4486e26146c07f021b44dc8ac58a627e120a58e (patch) | |
tree | 423ac6f623e9a2fc0c2c329546c50ef110afce7b /src/main/java/com/google/devtools/build/lib/remote | |
parent | 1e3d568ea68e3d4b597dd40e6100295548f44e8a (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.java | 2 |
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 -> { |