jubos / fake-s3

A lightweight server clone of Amazon S3 that simulates most of the commands supported by S3 with minimal dependencies
2.94k stars 355 forks source link

[Feature] Support for AWS v3 SDK #265

Open clicktravel-chrishern opened 1 year ago

clicktravel-chrishern commented 1 year ago

In V3 of the AWS SDK they have added validation to ensure that the LastModified attribute on an object is RFC-3339 compliant when performing operations such as GetObject or ListObjects.

The current code for setting the last-modified metadata attribute uses toIsoString() on a Javascript date which is not RFC-3339 compliant (the format is Thu, 20 Apr 2023 15:31:00 GMT which is based on RFC-7231).

This means that trying to use fake-S3 with V3 of the AWS SDK fails when trying to read objects with an error of:

TypeError: Invalid RFC-3339 date-time value

Are there any plans to support V3 of the AWS SDK?