Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.8.0
-
Fix Version/s: 1.8.1
-
Component/s: Zend_Service_Amazon
-
Labels:None
Description
Location: Zend_Service_Amazon_S3_Stream-> _getNamePart()
Problem: Adds an addition / between the host and path when forming the S3 object name.
Example: s3://bucket-name/object-name returns a name of bucket-name//object-name
Impact: Other calls such as getInfo() fail as the object is not found.
Cause: parse_url includes / in the 'path', there for a second "/" separator between the $url['host'] and $url['path'] is not required
Suggested fix
Current line: return $url['path'] ? $url['host'].'/'.$url['path'] : $url['host'];
Proposed line: return $url['path'] ? $url['host'].$url['path'] : $url['host'];
Hope this helps
Glenn
Assigning to Stas.