Skip to content

Problem deleting a directory on S3 - Missing required header for this request: Content-MD5 #1872

Open
@climmmm

Description

@climmmm

Bug Report

Q A
Flysystem Version 3.29.1
Adapter Name aws-s3-v3
Adapter version 3.29.0

Summary

Since the last update of the "aws/aws-sdk-php" package (3.337.3), when we use the 'deleteDirectory' function, we get the following error:
<Error><Code>InvalidRequest</Code><Message>Missing required header for this request: Content-MD5</Message><Resource>/s3app-xxxxxxxxx?delete</Resource><RequestId>xxxxxxxxx</RequestId></Error>"

We had to downgrade the aws version to 3.336.6 to avoid this error.

According to ChatGPT, this is due to the latest update of the "aws/aws-sdk-php" package, which no longer automatically adds the Content-MD5 header.

How to reproduce

Update "aws/aws-sdk-php" package to version 3.337.3 and try to delete directory with the library flysystem on S3.

Thank you in advance for your help

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions