cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From borisroman <...@git.apache.org>
Subject [GitHub] cloudstack pull request: CLOUDSTACK-8703: Fixed issue when listing...
Date Mon, 03 Aug 2015 16:40:45 GMT
Github user borisroman commented on a diff in the pull request:

    https://github.com/apache/cloudstack/pull/651#discussion_r36103914
  
    --- Diff: utils/src/com/cloud/utils/S3Utils.java ---
    @@ -352,10 +352,15 @@ public static File getFile(final ClientOptions clientOptions, final
String bucke
             ListObjectsRequest listObjectsRequest = new ListObjectsRequest().withBucketName(bucketName).withPrefix(directory
+ SEPARATOR);
     
             ObjectListing ol = client.listObjects(listObjectsRequest);
    -        while (ol != null && ol.isTruncated()) {
    +        if(ol.isTruncated()) {
    --- End diff --
    
    It is, it will thrown an exception not return null.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message