Issues

ZF-6686: Zend_Service_Amazon_S3 doesn't support ssl

Issue Type: New Feature Created: 2009-05-16T00:17:07.000+0000 Last Updated: 2009-06-07T16:58:23.000+0000 Status: Resolved Fix version(s): - 1.8.3 (09/Jun/09)

Reporter: Rick (rjolly) Assignee: Stanislav Malyshev (stas) Tags: - Zend_Service_Amazon

Related issues: Attachments:

Description

The Amazon S3 url is hard-coded with the "http:" scheme:

const S3_ENDPOINT = '<a rel="nofollow" href="http://s3.amazonaws.com">http://s3.amazonaws.com</a>';

Line 356 of the method "_makeRequest" sets the uri of the Zend_Http_Client object as a string:

$client->setUri(self::S3_ENDPOINT.'/'.$path);

The setUri method of Zend_Http_Client can accept a string or a Zend_Uri_Http object. If instead of a string, the uri above were an instance of Zend_Uri_Http, then the uri and scheme (http or https) could be set in Zend_Uri_Http's constructor. So Zend_Service_Amazon_S3 could allow a setter for protocol scheme and/or constructor flag.

This is all assuming that there are no other barriers to using Zend_Http_Client and ssl with Amazon S3.

Comments

Posted by Matthew Weier O'Phinney (matthew) on 2009-05-17T20:06:33.000+0000

Assigning to Stas.

Posted by Stanislav Malyshev (stas) on 2009-06-07T16:58:23.000+0000

Fixed, thanks

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts