Skip to content

getV4Authorization no longer correct for s3 in us-east-1 #232

Description

@bobzilladev

This commit changes how the region is determined, commenting out retrieval from the context. So it falls back on attempting to parse it from the url, which doesn't work with s3.amazonaws.com. There is a comment about how it won't work: "String[] urlParts = host.split("."); // everywhere except s3 and iam this is: service.region.amazonaws.com".

The error returned is:
org.dasein.cloud.aws.storage.S3Exception: The authorization header is malformed; the region 's3' is wrong; expecting 'us-east-1'

The commit:
08156e8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions