]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: objectlock: improve client error messages 40755/head
authorMatt Benjamin <mbenjamin@redhat.com>
Thu, 25 Feb 2021 22:39:08 +0000 (17:39 -0500)
committerNathan Cutler <ncutler@suse.com>
Sat, 10 Apr 2021 17:46:20 +0000 (19:46 +0200)
commit81cb385d403c6fd1beeb9c5a33b96937023c32b4
tree905118c660ef9d50422f86b8a282582d2e6ad756
parent1976598f645ad1935a5e428219713b8856796d83
rgw: objectlock: improve client error messages

A bucket object lock configuration can only be set on buckets
created with the object-lock option enabled.  Likewise, on
object lock or object retention hold can only be set on objects
in buckets with object lock enabled.  Object lock and related
policy and policy violations are also potentially confusing
to client users.

Raise the debug level to 4, but add a human-readable client error
message, when object lock constraints are violated.

Fixes: https://tracker.ceph.com/issues/49541
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
(cherry picked from commit 7583374e5294b1c1c16068999123fef98827e9dc)

Conflicts:
src/rgw/rgw_op.cc
src/rgw/rgw_op.cc