Zend Framework

Buckets With Capital Letters Not Supported

Details

Description

When attempting to pull a list of objects from a bucket with a capital letter the following error response is thrown:

"<Code>SignatureDoesNotMatch</Code><Message>The request signature we calculated does not match the signature you provided. Check your key and signing method.</Message>"

Example code to reproduce:

$s3 = new Zend_Service_Amazon_S3($key, $secret_key);
$buckets = $s3->getBuckets();
foreach ($buckets as $bucket) { $list = $s3->getObjectsByBucket($bucket); }

In this case, if the bucket name has a capital letter (ie 'Capital') then the list will return false. Amazon does support buckets with capital letters even though the Zend Framework documentation says it does not.

Activity

Hide
Adam Lundrigan added a comment -

@Enrico Zimuel Could you take a look at this?

Show
Adam Lundrigan added a comment - @Enrico Zimuel Could you take a look at this?
Hide
Nick added a comment -

Has any progress been made on this bug? It's a pretty serious bug and is still affecting our application. Thanks!

Show
Nick added a comment - Has any progress been made on this bug? It's a pretty serious bug and is still affecting our application. Thanks!
Hide
Duccio Gasparri added a comment -

I posted a partial solution to https://github.com/zendframework/zf2/pull/1201

A couple of issues:

1) upper case buckets are allowed only in US-General. All the other locations do not support them
2) Amazon discourages the use of upper case buckets
3) Amazon's own SDK does not support upper case buckets

To support full US General bucket, SOAP api calls are required. Wonder if it's worth it.

Show
Duccio Gasparri added a comment - I posted a partial solution to https://github.com/zendframework/zf2/pull/1201 A couple of issues: 1) upper case buckets are allowed only in US-General. All the other locations do not support them 2) Amazon discourages the use of upper case buckets 3) Amazon's own SDK does not support upper case buckets To support full US General bucket, SOAP api calls are required. Wonder if it's worth it.

People

Vote (1)
Watch (3)

Dates

  • Created:
    Updated: