Skip to content
This repository was archived by the owner on Oct 12, 2026. It is now read-only.
This repository was archived by the owner on Oct 12, 2026. It is now read-only.

Does AWS S3 support conditional put? #218

Closed

Description

@kevin-wyx

I am testing OpenStack Swift using s3-tests, all cases about conditional put/update output FAIL/ERROR.

Like: s3tests.functional.test_s3.test_put_object_ifmatch_good

Then I test conditional put with AWS S3, it raises NotImplemented error.

./s3curl/s3curl.pl --id test  --   http://testbucket.s3-ap-southeast-1.amazonaws.com/aaa -X PUT  --data @/tmp/aaa  -H 'If-Match: abc'
<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>NotImplemented</Code><Message>A header you provided implies functionality that is not implemented</Message><Header>If-Match</Header><RequestId>301498F0A024E98Q</RequestId><HostId>Yd9JPz7BG8ixUiSCtVOSl90fGjqNtxH45WJa0hb+bli6x88TNjyxhzVFxRI6CHjHDA6GR8cIE8Y=</HostId></Error>

Does S3 not actually support conditional put?

Activity

  1. gaul commented on Apr 4, 2018

    @gaul
    Contributor

    Conditional PUT is a Ceph extension. AWS S3 cannot support this due to eventually consistency.

  2. kevin-wyx commented on Apr 12, 2018

    @kevin-wyx
    Author

    Thanks, @gaul.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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