You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jclouds.apache.org by ga...@apache.org on 2016/02/17 08:11:00 UTC
jclouds git commit: Consistently quote ETags during comparison
Repository: jclouds
Updated Branches:
refs/heads/master e0a7ea7fd -> 2638ba4e6
Consistently quote ETags during comparison
Regression from e0a7ea7fdf4554d919b23ce72391a37e41d7cad8.
Project: http://git-wip-us.apache.org/repos/asf/jclouds/repo
Commit: http://git-wip-us.apache.org/repos/asf/jclouds/commit/2638ba4e
Tree: http://git-wip-us.apache.org/repos/asf/jclouds/tree/2638ba4e
Diff: http://git-wip-us.apache.org/repos/asf/jclouds/diff/2638ba4e
Branch: refs/heads/master
Commit: 2638ba4e6913a06a5d0919e2dfd277f26676ae03
Parents: e0a7ea7
Author: Andrew Gaul <ga...@apache.org>
Authored: Tue Feb 16 23:10:16 2016 -0800
Committer: Andrew Gaul <ga...@apache.org>
Committed: Tue Feb 16 23:10:16 2016 -0800
----------------------------------------------------------------------
.../main/java/org/jclouds/blobstore/config/LocalBlobStore.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/jclouds/blob/2638ba4e/blobstore/src/main/java/org/jclouds/blobstore/config/LocalBlobStore.java
----------------------------------------------------------------------
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 5d806aa..f1a4938 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);
}
}