mirror of
https://github.com/apache/jclouds.git
synced 2025-02-28 21:39:09 +00:00
Consistently compare quoted ETags in CopyBlob
This commit is contained in:
parent
00a36c3e45
commit
fb186d82de
@ -266,10 +266,10 @@ public abstract class BaseBlobStore implements BlobStore {
|
||||
String eTag = blob.getMetadata().getETag();
|
||||
if (eTag != null) {
|
||||
eTag = maybeQuoteETag(eTag);
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user