ak58588 commented on this pull request.
> + /** + * this filter method is applied only for the cases with SAS Authentication. + * + */ + public HttpRequest filterSAS(HttpRequest request, String credential) throws HttpException { + String containerName = null; + String blobName = null; + URI requestUri = request.getEndpoint(); + try { + String[] parametersArray = cutUri(requestUri); + containerName = parametersArray[1]; + UriBuilder endpoint = Uris.uriBuilder(storageUrl).appendPath(containerName); + if (parametersArray.length == 3) { + endpoint.appendPath(parametersArray[2]).query(credential); + } else { + endpoint.query("restype=container&" + credential); yes, _.query_ it formats properly, while _.addQuery_ causes connection errors. As I was trying to understand the code a while ago, I found out that it has something to do with encoding/decoding and formatting. -- 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/pull/1270#discussion_r255849330