Skip to content

Wrong error code for CompleteMultipartUpload when write condition fails #2790

@findepi

Description

@findepi

In Trino project we have a test using S3Mock.

We're upgrading to use S3Mock 4.10.0 to benefit from its support for S3 conditional writes.

We currently have two code paths for conditional writes with If-None-Match: *

  • via PutObject request
  • via multi-part upload where write condition is verified in CompleteMultipartUpload request

We noticed that in the second code path, when running with S3Mock 4.10.0, we get Status Code: 304 rather than 412 error code.

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions