From f2d897d9774c2c0225c199c7f2f46971637327d6 Mon Sep 17 00:00:00 2001 From: Andrew Gaul Date: Mon, 18 Aug 2014 23:15:49 -0700 Subject: [PATCH] Set Content-MD5 only if ETag has correct format Previously this check was more lenient than it should have been. --- .../main/java/org/jclouds/s3/xml/ListBucketHandler.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/apis/s3/src/main/java/org/jclouds/s3/xml/ListBucketHandler.java b/apis/s3/src/main/java/org/jclouds/s3/xml/ListBucketHandler.java index c023d43b5a..be54e2d5fc 100644 --- a/apis/s3/src/main/java/org/jclouds/s3/xml/ListBucketHandler.java +++ b/apis/s3/src/main/java/org/jclouds/s3/xml/ListBucketHandler.java @@ -20,6 +20,7 @@ import static com.google.common.io.BaseEncoding.base16; import static org.jclouds.http.Uris.uriBuilder; import static org.jclouds.util.SaxUtils.currentOrNull; +import java.util.regex.Matcher; import java.util.regex.Pattern; import javax.inject.Inject; @@ -63,7 +64,7 @@ public class ListBucketHandler extends ParseSax.HandlerWithResult