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

2019-05-23 Thread GitBox
gaul 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_r286852953
 
 

 ##
 File path: 
providers/azureblob/src/main/java/org/jclouds/azureblob/blobstore/functions/BlobPropertiesToBlobMetadata.java
 ##
 @@ -58,8 +61,9 @@ public MutableBlobMetadata apply(BlobProperties from) {
 PublicAccess containerAcl = 
containerAcls.getUnchecked(from.getContainer());
 if (containerAcl != PublicAccess.PRIVATE)
to.setPublicUri(from.getUrl());
- } catch (CacheLoader.InvalidCacheLoadException e) {
-// nulls not permitted from cache loader
+ } catch (Exception ex) {
+InsufficientAccessRightsException iare = 
Throwables2.getFirstThrowableOfType(ex, 
InsufficientAccessRightsException.class);
+if (iare == null) throw ex;  
 
 Review comment:
   Maybe add a comment explaining that this is not a publicly accessible object?


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:
us...@infra.apache.org


With regards,
Apache Git Services


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

2019-04-29 Thread GitBox
gaul 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_r279365982
 
 

 ##
 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:
   I agree with your comment!  But I am suggesting that if the bucket is 
non-public, it should not have a public URI.


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:
us...@infra.apache.org


With regards,
Apache Git Services


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

2019-04-27 Thread GitBox
gaul 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_r279144562
 
 

 ##
 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:
   Should this call `setPublicUri` when catching the exception?


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:
us...@infra.apache.org


With regards,
Apache Git Services


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

2019-04-27 Thread GitBox
gaul 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_r279144523
 
 

 ##
 File path: apis/openstack-keystone/pom.xml
 ##
 @@ -108,6 +108,7 @@
 
   
+org.apache.maven.plugins
 
 Review comment:
   What are these plugin changes?


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:
us...@infra.apache.org


With regards,
Apache Git Services