Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Version published after converting to the new editor

Table of Contents

...

The request to enable object locking can fail with the following errors:

  • 412 Precondition Failed will be displayed if the Swarm cluster does not yet support all the features necessary to perform the operation.
  • 412 Precondition Failed will be displayed if the bucket does not have versioning enabled.
  • 403 Forbidden if the user does not have the PutBucketObjectLocking permission.

...

Differences Between S3 and Swarm's Implementation of Object Locking

In S3, a DELETE request would result in a delete marker, shadowing the locked object version. Swarm's implementation deviates from that logic – it rejects any DELETE requests for undeletable objects with a 403 Forbidden error.

When Gateway gets a 403 Forbidden error from Swarm, it checks if the object is locked. If it is, Gateway simulates the S3 behavior creating a new (unlocked) object version, immediately followed by a DELETE, thus creating a delete marker.

For SCSP, you can use a configuration flag to pick the desired behavior:

...