From 2638ba4e6913a06a5d0919e2dfd277f26676ae03 Mon Sep 17 00:00:00 2001 From: Andrew Gaul Date: Tue, 16 Feb 2016 23:10:16 -0800 Subject: [PATCH] Consistently quote ETags during comparison Regression from e0a7ea7fdf4554d919b23ce72391a37e41d7cad8. --- .../java/org/jclouds/blobstore/config/LocalBlobStore.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blobstore/src/main/java/org/jclouds/blobstore/config/LocalBlobStore.java b/blobstore/src/main/java/org/jclouds/blobstore/config/LocalBlobStore.java index 5d806aae1f..f1a49384b3 100644 --- a/blobstore/src/main/java/org/jclouds/blobstore/config/LocalBlobStore.java +++ b/blobstore/src/main/java/org/jclouds/blobstore/config/LocalBlobStore.java @@ -532,10 +532,10 @@ public final class LocalBlobStore implements BlobStore { String eTag = maybeQuoteETag(blob.getMetadata().getETag()); if (eTag != null) { - if (options.ifMatch() != null && !options.ifMatch().equals(eTag)) { + if (options.ifMatch() != null && !maybeQuoteETag(options.ifMatch()).equals(eTag)) { throw returnResponseException(412); } - if (options.ifNoneMatch() != null && options.ifNoneMatch().equals(eTag)) { + if (options.ifNoneMatch() != null && maybeQuoteETag(options.ifNoneMatch()).equals(eTag)) { throw returnResponseException(412); } }