Re: jclouds S3 provider calls GetBucketAcl every time putBlob() is called?

2014-08-15 Thread Andrew Phillips
How would I pass in my new context module? That would be a good question to ask on #IRC [1], I think. Basically, as far as I recall (don't quote me on this! ;-)), you'll have to create your own ApiMetadata, probably by overriding S3ApiMetadata [2], and change the set of default modules.

Re: jclouds S3 provider calls GetBucketAcl every time putBlob() is called?

2014-08-14 Thread Steve Kingsland
How would I pass in my new context module? I've gotten as far as extending S3BlobStoreContextModule, overriding bucketAcls() to specify a longer expiration, but then what? Do I just pass in an instance of my context module to ContextBuilder#modules()? When I tried that, I got this exception:

jclouds S3 provider calls GetBucketAcl every time putBlob() is called?

2014-08-13 Thread Steve Kingsland
I'm using the S3 API, and I've noticed that every time I call blobStore.putBlob(), the S3 provider requests the bucket's ACL first. From looking at the code, it appears that the ACLs should be cached after the first GET, but I'm not seeing that. With debug logging enabled, I can clearly see the

Re: jclouds S3 provider calls GetBucketAcl every time putBlob() is called?

2014-08-13 Thread Andrew Phillips
blobStore.putBlob(), the S3 provider requests the bucket's ACL first. From looking at the code, it appears that the ACLs should be cached after the first GET, but I'm not seeing that. Could you point out which code (path) specifically you're looking at here? Thanks! ap