Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Metadata from S3 is not returned #7

Open
Omnipresent opened this issue Nov 5, 2016 · 0 comments
Open

Metadata from S3 is not returned #7

Omnipresent opened this issue Nov 5, 2016 · 0 comments

Comments

@Omnipresent
Copy link

Metadata from S3 doesn't seem to be loaded. Calling getMetaAttribute seems to load the data but doesn't return the data back. Below is an example

def file = s3SP["bucketname"]["filename.txt"] //file already exists
log.info("ETag from AWS: " + file.getS3Object().getObjectMetadata().getETag()) //prints null
log.info("ETag from karman: " + file.getMetaAttribute(Headers.CONTENT_MD5)) //prints null
log.info("ETag from AWS: " + file.getS3Object().getObjectMetadata().getETag()) //prints the etag

Note that second and fourth line in the above snippet are same.

This seems to be the culprit. https://github.com/bertramdev/karman-core/blob/master/karman-aws/src/main/groovy/com/bertramlabs/plugins/karman/aws/S3CloudFile.groovy#L142

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant