mirror of https://github.com/apache/jclouds.git
add signature to AWS error message
git-svn-id: http://jclouds.googlecode.com/svn/trunk@1852 3d8758e0-26b5-11de-8745-db77d3ebf521
This commit is contained in:
parent
2fef8da975
commit
daf95d7e8a
|
@ -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;
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue