Skip to content

Metadata from S3 is not returned #7

@Omnipresent

Description

@Omnipresent

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions