Incompatibility with aws sdk 3.228.0

Created on 21 June 2022, over 2 years ago
Updated 4 January 2025, 4 days ago

Problem/Motivation

AWS released version 3.228 of their sdk a few hours ago. They changed the signature of their register function in the StreamWrapper class (https://github.com/aws/aws-sdk-php/commit/1f4def6fdb48d526188f195fad3a2e...) which is causing the S3 module to display the following error:

Declaration of Drupal\s3fs\StreamWrapper\S3fsStream::register(Aws\S3\S3ClientInterface $client, $protocol = 's3', ?Aws\CacheInterface $cache = NULL) should be compatible with Aws\S3\StreamWrapper::register(Aws\S3\S3ClientInterface $client, $protocol = 's3', ?Aws\CacheInterface $cache = NULL, $v2Existence = false) S3fsStream.php:1582

Steps to reproduce

  • Update the aws sdk version to 3.228
  • Run "drush cr" or "drush updb"

Proposed resolution

The signature change seems minor enough, just adding one more parameter to the function. The attached patch does that as well as update the composer requirement to 3.228 or above.

πŸ› Bug report
Status

Closed: outdated

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jacobbell84

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States cmlara

    Drupal 7 end-of-life triage:
    Drupal 7 will reach end of life on January 5th.

    The 7.x branches of S3FS do not have any additional planned releases.

    The requests in this issue do not appear to exist in the 8.x-3.x and newer branches.

Production build 0.71.5 2024