ZF-11899: Buckets With Capital Letters Not Supported


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

"SignatureDoesNotMatchThe request signature we calculated does not match the signature you provided. Check your key and signing method."

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.


@[~zimuel] Could you take a look at this?

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

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.