]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: add configurable AWS-compat invalid range get behavior 22590/head
authorMatt Benjamin <mbenjamin@redhat.com>
Thu, 24 May 2018 20:09:01 +0000 (16:09 -0400)
committerPrashant D <pdhange@redhat.com>
Mon, 18 Jun 2018 00:20:14 +0000 (20:20 -0400)
commit8851fd08a1e5a821c0dd8cef24e224641d884248
treef390e6262d441c1b7dabe0517ef058f1e923aba4
parent93ff121c5ad658d32fed089b1037222f2ade1b5d
rgw: add configurable AWS-compat invalid range get behavior

If rgw_ignore_get_invalid_range is set, treat invalid range
restrictions as a request for the full object.  By default, retain
the RGW behavior to fail with ERANGE.

Fixes: http://tracker.ceph.com/issues/24317
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
(cherry picked from commit b8a3baffddb0f0082a9b250693d26d934eaf2650)
src/common/legacy_config_opts.h
src/common/options.cc
src/rgw/rgw_op.cc
src/rgw/rgw_op.h