]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: objectlock: improve client error messages 40693/head
authorMatt Benjamin <mbenjamin@redhat.com>
Thu, 25 Feb 2021 22:39:08 +0000 (17:39 -0500)
committersinguliere <singuliere@autistici.org>
Fri, 9 Apr 2021 05:28:13 +0000 (07:28 +0200)
commit6e19a5559039740932948d05b40502cf31ab3ab0
tree10dde6f68bbeb57ec8e64313b2db52e1b63444ea
parent932dd17a34e0e09974992c58846070f283329396
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)
src/rgw/rgw_op.cc