Skip to content

Commit

Permalink
Update as Amazon S3 API has changed.
Browse files Browse the repository at this point in the history
  • Loading branch information
lmajano committed Sep 24, 2014
1 parent c5eafc3 commit 8c65191
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/s3explorer/plugins/AmazonS3.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ s3_ssl : Whether to use ssl on all cals or not (Optional, defaults to false)
$throw("Error making Amazon REST Call",results.message);
}
// Parse out buckets
bucketsXML = xmlSearch(results.response, "//*[local-name()='Bucket']");
bucketsXML = xmlSearch(results.response, "//*[local-name()='Contents']");
for(x=1; x lte arrayLen(bucketsXML); x++){
thisBucket = {name=trim(bucketsXML[x].name.xmlText),
creationDate=trim(bucketsXML[x].creationDate.xmlText)};
Expand Down Expand Up @@ -303,7 +303,7 @@ s3_ssl : Whether to use ssl on all cals or not (Optional, defaults to false)
}

// Parse results
contentsXML = xmlSearch(results.response, "//*[local-name()='Bucket']");
contentsXML = xmlSearch(results.response, "//*[local-name()='Contents']");

for(x=1; x lte arrayLen(contentsXML); x++){
thisContent = {key=trim(contentsXML[x].key.xmlText),
Expand Down

0 comments on commit 8c65191

Please sign in to comment.