q225zhan commented on this pull request.
> + SharedKeyLiteAuthentication signer;
+
+ @Inject
+ ParseSax.Factory factory;
+
+ @Inject
+ Provider<ErrorHandler> errorHandlerProvider;
+
+ public AzureStorageError parseAzureStorageErrorFromContent(HttpCommand
command,
+ HttpResponse
response, InputStream content) throws HttpException {
+ AzureStorageError error =
factory.create(errorHandlerProvider.get()).parse(content);
+
error.setRequestId(response.getFirstHeaderOrNull(AzureStorageHeaders.REQUEST_ID));
+ if ("AuthenticationFailed".equals(error.getCode())) {
+ // this signature is incorrect for URLs from AzureBlobRequestSigner
+
error.setStringSigned(signer.createStringToSign(command.getCurrentRequest()));
+ error.setSignature(signer.signString(error.getStringSigned()));
Deleted.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/405#discussion_r129733968