Skip to content
This repository has been archived by the owner on Apr 30, 2019. It is now read-only.

Removing public acls #61

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ private PutObjectRequest createDirectoryPutObjectRequest(String key) {
ObjectMetadata objectMetadata = new ObjectMetadata();
objectMetadata.setContentLength(0);

return new PutObjectRequest(this.bucketName, key, inputStream, objectMetadata).withCannedAcl(CannedAccessControlList.PublicRead);
return new PutObjectRequest(this.bucketName, key, inputStream, objectMetadata);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,6 @@ public void putResource() throws TransferFailedException, ResourceDoesNotExistEx
assertEquals(BUCKET_NAME, putObjectRequests.get(i).getBucketName());
assertNotNull(putObjectRequests.get(i).getInputStream());
assertEquals(0, putObjectRequests.get(i).getMetadata().getContentLength());
assertEquals(CannedAccessControlList.PublicRead, putObjectRequests.get(i).getCannedAcl());
}

assertEquals("foo/", putObjectRequests.get(0).getKey());
Expand Down