> @@ -101,9 +102,9 @@ public void endElement(String uri, String name, String 
> qName) {
>        } else if (qName.equals("ETag")) {
>           String currentETag = currentOrNull(currentText);
>           builder.eTag(currentETag);
> -         currentETag = currentETag.replace("\"", "");
> -         if (!MULTIPART_BLOB_ETAG.matcher(currentETag).matches()) {
> -            builder.contentMD5(base16().lowerCase().decode(currentETag));
> +         Matcher matcher = ETAG_CONTENT_MD5_PATTERN.matcher(currentETag);
> +         if (matcher.matches()) {

Previously this code explicitly rejected multi-part ETag "AAAA-1111", accepted 
single part ETag "AAAA", and threw Exceptions on other forms.  Now it 
explicitly accepts single-part ETag "AAAA" and ignores other forms.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/493/files#r16440271

Reply via email to