Zend Framework 1.12 Amazon S3 CopyObject SignatureDoesNotMatch

问题描述 投票:2回答:1

使用ZF 1.11,我使用$ s3-> copyObject()没问题。我需要升级到ZF 1.12.20,但是在尝试复制对象时出现此错误:

Zend_Http_Response::__set_state(array(
'version' => '1.1',
'code' => 403,
'message' => 'Forbidden',
'headers' =>
array (
'X-amz-request-id' => '07295DAF1500709B',
'X-amz-id-2' => '6zkAaIx0FHCZvgetRaMfCp6h6SfbHVbJoCrHqNdKN6AcfywOrrBCcSD13RcKvfiDBOJjiEm+ldM=',
'Content-type' => 'application/xml',
'Transfer-encoding' => 'chunked',
'Date' => 'Fri, 30 Sep 2016 12:30:03 GMT',
'Server' => 'AmazonS3',
'Connection' => 'close',
),
'body' => '610
SignatureDoesNotMatchThe request signature we calculated does not match the signature you provided. Check your key and     signing method.AKIAJK6QI4DTZQ2X2SFAPUT
application/x-www-form-urlencoded
Fri, 30 Sep 2016 12:30:03 +0000
x-amz-copy-source:imgdeverasmusu/259/not-quite-reaching-potential-5f601d2088d7afc4fe69e1800bedc1cf.jpg
x-amz-metadata-directive:COPY
/imgdeverasmusu/259/eq-db37b6972b19800eaf310011ae00ffc2.jpg

如果将类Zend_Http_Client 1.12.20更改为1.11,则该副本有效,但不适用于1.12.20。

php zend-framework amazon-s3
1个回答
0
投票
<?php
© www.soinside.com 2019 - 2024. All rights reserved.