Zend Framework

Zend_Service_Amazon_S3 doesn't support ssl

Details

  • Type: New Feature New Feature
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.8.1
  • Fix Version/s: 1.8.3
  • Component/s: Zend_Service_Amazon
  • Labels:
    None

Description

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

const S3_ENDPOINT = 'http://s3.amazonaws.com';

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.

Activity

Hide
Matthew Weier O'Phinney added a comment -

Assigning to Stas.

Show
Matthew Weier O'Phinney added a comment - Assigning to Stas.
Hide
Stanislav Malyshev added a comment -

Fixed, thanks

Show
Stanislav Malyshev added a comment - Fixed, thanks

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: