diff --git a/aws/s3/core/src/main/java/org/jclouds/aws/s3/util/S3Utils.java b/aws/s3/core/src/main/java/org/jclouds/aws/s3/util/S3Utils.java index 21cb7836eb..3c79ca6743 100644 --- a/aws/s3/core/src/main/java/org/jclouds/aws/s3/util/S3Utils.java +++ b/aws/s3/core/src/main/java/org/jclouds/aws/s3/util/S3Utils.java @@ -58,8 +58,10 @@ public class S3Utils { AWSError error = parserFactory.createErrorParser().parse(content); error.setRequestId(response.getFirstHeaderOrNull(S3Headers.REQUEST_ID)); error.setRequestToken(response.getFirstHeaderOrNull(S3Headers.REQUEST_TOKEN)); - if ("SignatureDoesNotMatch".equals(error.getCode())) + if ("SignatureDoesNotMatch".equals(error.getCode())) { error.setStringSigned(signer.createStringToSign(command.getRequest())); + error.setSignature(signer.signString(error.getStringSigned())); + } return error; }