Error executing "DeleteObjects" on ... MissingContentMD5Missing required header for this request

Created on 21 January 2025, 3 months ago

Hello, since version 3.337.0 of the vendor aws/aws-sdk-php, we can sometimes encounter an error indicating that the request is not valid.

To reproduce easily:

  • Go to the Drupal admin: /admin/config/media/image-styles
  • Edit an image style
  • Save

The error occurs if the style directory in the bucket contains a subdirectory.

By downgrading to the latest previous version, 3.336.15, everything works correctly.

It might be related to https://github.com/aws/aws-sdk-php/pull/2999.

Do you have any idea?
Thank you!

πŸ› Bug report
Status

Active

Version

2.2

Component

Code

Created by

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

Comments & Activities

  • Issue created by @ruiadr
  • πŸ‡ΊπŸ‡ΈUnited States lhridley

    This sounds like this is specific to changes with the S3Client in the AWS PHP SDK. This question / bug needs to be addressed by the maintainer of the submodule Flysystem S3, which can be found here: https://www.drupal.org/project/flysystem_s3 β†’

    Also you might get some guidance in the Flysystem Channel on Drupal Slack, which can be found at `#flysystem`. One of the maintainers of the flysystem_s3 module is there on a regular basis, as well as community members getting involved in maintaining the module and the related modules in the ecosystem.

  • πŸ‡ΊπŸ‡ΈUnited States lhridley
  • Hello,
    Thank you for your response, I will address my request to the flysystem_s3 module.

Production build 0.71.5 2024