You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jclouds.apache.org by GitBox <gi...@apache.org> on 2019/04/24 14:21:17 UTC

[GitHub] [jclouds] nacx commented on a change in pull request #23: draft - disable AccessPolicy check for SAS Authorised azureblob

nacx commented on a change in pull request #23: draft - disable AccessPolicy check for SAS Authorised azureblob
URL: https://github.com/apache/jclouds/pull/23#discussion_r278151052
 
 

 ##########
 File path: providers/azureblob/src/main/java/org/jclouds/azureblob/blobstore/functions/BlobPropertiesToBlobMetadata.java
 ##########
 @@ -58,6 +59,8 @@ public MutableBlobMetadata apply(BlobProperties from) {
             PublicAccess containerAcl = containerAcls.getUnchecked(from.getContainer());
             if (containerAcl != PublicAccess.PRIVATE)
                to.setPublicUri(from.getUrl());
+         } catch (UncheckedExecutionException ue) {
+               to.setPublicUri(from.getUrl());
 
 Review comment:
   Would something like the following work?
   ```java
   } catch (Exception ex) {
      InsufficientAccessRightsException iare = Throwables2.getFirstThrowableOfType(ex, InsufficientAccessRightsException.class);
      if (iare == null) throw ex; // Propagate any other uncaught exceptions
      to.setPublicUri(from.getUrl()); // handle our own exception gracefully
   }
   ``` 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services