For 1.5 due to the changes in configuration management it requires a change in the way integration is done and we need post-load provided by after alpha1, as such I have discussed an alpha2 with the libraries team #1371442: Create 7.x-2.0-alpha2 release.

In addition the 1.5 release dropped proper documentation of configuration variables so I created an issue against upstream library https://github.com/amazonwebservices/aws-sdk-for-php/pull/14.

I created a 5.x branch with the initial conversation, but the defaults loading won't work properly and the tests fail.

CommentFileSizeAuthor
#3 version-1371444.patch514 bytesjustafish

Comments

boombatower’s picture

Version: 7.x-4.x-dev »
Assigned: Unassigned » boombatower
Status: Active » Fixed

Completed update. Creating 7.x-5.0 release.

mediamike’s picture

Version: » 7.x-5.0

It doesn't seem to work for me. Where can I find an old version of the awssdk library or will that no longer work? The current version does not seem to load 1.5.0.1. I have checked that the file sdk.class.php is in sites/all/libraries/awssdk
I am using library 7.x-2.0-alpha2

justafish’s picture

Status: Fixed » Needs review
StatusFileSize
new514 bytes

The library doesn't load because the matching for the version string is incorrect. Patch attached.

bassplaya’s picture

Sorry, this patch didn't work for me.
I'm using AWS SDK for PHP 7.x-5.0
my pwd: /Users/GraphicDesign/Sites/SandboxD7/sites/all/modules/awssdk

Here's what I got in Terminal:

BassPlaya:modules GraphicDesign$ drush pmi awssdk
 Project          :  awssdk                                                    
 Type             :  module                                                    
 Title            :  AWS SDK for PHP                                           
 Description      :  The AWS SDK for PHP provides a library, code samples, and 
                     documentation for developers.                             
 Version          :  7.x-5.0                                                   
 Package          :  Libraries                                                 
 Core             :  7.x                                                       
 Status           :  enabled                                                   
 Path             :  sites/all/modules/awssdk                                  
 Schema version   :  module has no schema                                      
 Files            :  awssdk.test                                               
 Requires         :  libraries (2.0-alpha2) 

BassPlaya:awssdk GraphicDesign$ git apply -v version-1371444.patch
Checking patch awssdk.module...
error: while searching for:
      'download url' => 'http://aws.amazon.com/sdkforphp/',
      'version arguments' => array(
        'file' => 'sdk.class.php',
        'pattern' => "/define\('CFRUNTIME_VERSION', '(\d+\.\d+(\.\d+)?(\.\d+)?)'\);/",
        'lines' => 200,
      ),
      'files' => array(

error: patch failed: awssdk.module:17
error: awssdk.module: patch does not apply
justafish’s picture

Works fine for me

asterix:~ sal$ cd ~/Sites/amazons3/sites/all/modules/
asterix:modules sal$ git clone --branch 7.x-5.x http://git.drupal.org/project/awssdk.git
Cloning into awssdk...
remote: Counting objects: 213, done.
remote: Compressing objects: 100% (199/199), done.
remote: Total 213 (delta 113), reused 27 (delta 14)
Receiving objects: 100% (213/213), 28.67 KiB, done.
Resolving deltas: 100% (113/113), done.
asterix:modules sal$ cd awssdk
asterix:awssdk sal$ git branch -a
* 7.x-5.x
  remotes/origin/7.x-2.x
  remotes/origin/7.x-3.x
  remotes/origin/7.x-4.x
  remotes/origin/7.x-5.x
asterix:awssdk sal$ wget http://drupal.org/files/version-1371444.patch
--2012-01-02 13:27:06--  http://drupal.org/files/version-1371444.patch
Resolving drupal.org... 140.211.10.16, 140.211.166.21, 140.211.166.6
Connecting to drupal.org|140.211.10.16|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 514 [text/plain]
Saving to: `version-1371444.patch'

100%[===========================================================================================================================================>] 514         --.-K/s   in 0s      

2012-01-02 13:27:07 (61.3 MB/s) - `version-1371444.patch' saved [514/514]

asterix:awssdk sal$ git apply -v version-1371444.patch 
Checking patch awssdk.module...
Applied patch awssdk.module cleanly.
boombatower’s picture

Status: Needs review » Closed (fixed)

This was "fixed" quite some time ago. Lets create a new issue if this is still outstanding.

Saoirse1916’s picture

Still not working for me. I'm using the Dev versions of awssdk and Amazon S3 and I've patched awssdk with the above patch, cleared caches, deleted everything, ran update.php, cleared caches, reinstalled everything, cleared caches again. No luck and I get the same error as above.

EDIT: Sorry, thought the error was in this issue but I guess it's not:

Recoverable fatal error: Argument 1 passed to AmazonS3::__construct() must be an array, string given, called in /home/myaccount/public_html/sites/all/modules/amazons3/amazons3.module on line 100 and defined in AmazonS3->__construct() (line 423 of /home/myaccount/public_html/sites/all/libraries/awssdk/services/s3.class.php).