This is an automated email from the ASF dual-hosted git repository.
gaul pushed a commit to branch 2.1.x
in repository https://gitbox.apache.org/repos/asf/jclouds.git
The following commit(s) were added to refs/heads/2.1.x by this push:
new 9f2d94d Proper exception to catch for methods with unchecked exception
9f2d94d is described below
commit 9f2d94d72532fba246e9b64b77f1ac2a60a353bb
Author: Ignasi Barrera <[email protected]>
AuthorDate: Sat Jun 15 10:45:04 2019 +0200
Proper exception to catch for methods with unchecked exception
---
.../azureblob/blobstore/functions/BlobPropertiesToBlobMetadata.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/providers/azureblob/src/main/java/org/jclouds/azureblob/blobstore/functions/BlobPropertiesToBlobMetadata.java
b/providers/azureblob/src/main/java/org/jclouds/azureblob/blobstore/functions/BlobPropertiesToBlobMetadata.java
index d7e0c6c..f485add 100644
---
a/providers/azureblob/src/main/java/org/jclouds/azureblob/blobstore/functions/BlobPropertiesToBlobMetadata.java
+++
b/providers/azureblob/src/main/java/org/jclouds/azureblob/blobstore/functions/BlobPropertiesToBlobMetadata.java
@@ -60,7 +60,7 @@ public class BlobPropertiesToBlobMetadata implements
Function<BlobProperties, Mu
PublicAccess containerAcl =
containerAcls.getUnchecked(from.getContainer());
if (containerAcl != PublicAccess.PRIVATE)
to.setPublicUri(from.getUrl());
- } catch (Exception ex) {
+ } catch (RuntimeException ex) {
//AzureBlob is not a publicly accessible object, but it is
impossible to obtain ACL using SAS Auth.
InsufficientAccessRightsException iare =
Throwables2.getFirstThrowableOfType(ex,
InsufficientAccessRightsException.class);
if (iare == null) throw ex;