Skip to content

Commit

Permalink
check if there is an issue with indirect use of credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeloffner committed Oct 4, 2023
1 parent 9534876 commit dd3a743
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions tests/functions/ACL.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -158,14 +158,12 @@ component extends="org.lucee.cfml.test.LuceeTestCase" labels="s3" {
// set path
var dir="s3://#arguments.bucketName#";
if(!isEmpty(arguments.objectName)) dir&="/"&arguments.objectName;
debug(dir);

start=getTickCount();
Util::deleteIfExists(cred,arguments.bucketName,arguments.objectName);

assertFalse(S3Exists(arguments.bucketName,arguments.objectName));
directoryCreate(dir);
Util::deleteIfExists(cred,arguments.bucketName,arguments.objectName);
assertFalse(S3Exists(
bucketName:bucketName, objectName:objectName?:nullValue(),
accessKeyId:cred.ACCESS_KEY_ID, secretAccessKey:cred.SECRET_KEY, host:(isNull(cred.HOST)?nullvalue():cred.HOST)));
directoryCreate(dir);

// check inital data
if(useS3Function) {
Expand Down

0 comments on commit dd3a743

Please sign in to comment.