You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
3. When If-None-Match is present, evaluate the If-None-Match
precondition:
* if true, continue to step 5
* if false for GET/HEAD, respond 304 (Not Modified)
* if false for other methods, respond 412 (Precondition Failed)
However AWS S3 documentation does not explicitly note support for conditional requests for PutObject, only on GetObject (and some others like CopyObject).
Per RFC-7232 §6: precedence a
PUT
request should return 412 not 304.However AWS S3 documentation does not explicitly note support for conditional requests for
PutObject
, only onGetObject
(and some others likeCopyObject
).Apparently AWS returns a not implemented response: https://stackoverflow.com/questions/12654828/amazon-s3-avoid-overwriting-objects-with-the-same-name (?)
Expected Behavior
Minio should either copy AWS S3, or correctly follow RFC-7232. Either way differences should be noted in the documentation.
Current Behavior
Minio returns 304:
Steps to Reproduce (for bugs)
if-none-match
header with matchingETag
.Context
Trying to prevent duplicate uploads of the same content.
Your Environment
minio --version
): RELEASE.2023-11-20T22-40-07ZThe text was updated successfully, but these errors were encountered: