Skip to content

GetObject is failing with S3 when there are prefixes are involved #504

@harshavardhana

Description

@harshavardhana
$ java -cp "api/build/libs/minio-3.0.0-DEV-all.jar:."  GetObject
Error occurred: error occured
ErrorResponse(code=SignatureDoesNotMatch, message=The request signature we calculated does not match the signature you provided. Check your key and signing method., bucketName=null, objectName=null, resource=null, requestId=65FB0FB583B43898, hostId=pRBfWpB/t0ddnMjP+J4HFJqLBRsp/gq/RRnKFDZxLRGgPO3HbB0qsK+YTOQorb1QdjCZ88GiGnU=)
request={method=GET, url=https://ferenginar.s3-eu-central-1.amazonaws.com/1%2Fdir%2Fissue, headers=Range: bytes=0-
Host: ferenginar.s3-eu-central-1.amazonaws.com
User-Agent: Minio (amd64; amd64) minio-java/dev
x-amz-content-sha256: UNSIGNED-PAYLOAD
x-amz-date: 20161222T225231Z
Authorization: AWS4-HMAC-SHA256 Credential=AKIAJY2EP7JTV2SUOH4Q/20161222/eu-central-1/s3/aws4_request, SignedHeaders=host;range;x-amz-content-sha256;x-amz-date, Signature=3dab61c1cc810759a835f7dbc0a611d6e5a4368b0181b86b537eb311a1eaba8e
}
response={code=403, headers=x-amz-request-id: 65FB0FB583B43898
x-amz-id-2: pRBfWpB/t0ddnMjP+J4HFJqLBRsp/gq/RRnKFDZxLRGgPO3HbB0qsK+YTOQorb1QdjCZ88GiGnU=
Content-Type: application/xml
Transfer-Encoding: chunked
Date: Thu, 22 Dec 2016 22:52:32 GMT
Server: AmazonS3
OkHttp-Sent-Millis: 1482447152557
OkHttp-Received-Millis: 1482447152766

Same call fails with minio server as well under same conditions

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