]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: check object name after rebuilding it in S3 POST
authorYehuda Sadeh <yehuda@inktank.com>
Tue, 27 Aug 2013 02:46:43 +0000 (19:46 -0700)
committerYehuda Sadeh <yehuda@inktank.com>
Wed, 4 Sep 2013 23:27:03 +0000 (16:27 -0700)
commit1a9651010aab51c9be2edeccd80e9bd11f5177ce
treebdab926b91acb80db2415400de1e14c893ea2815
parent1bd74a020b93f154b2d4129d512f6334387de7c7
rgw: check object name after rebuilding it in S3 POST

Fixes: #6088
Backport: bobtail, cuttlefish, dumpling

When posting an object it is possible to provide a key
name that refers to the original filename, however we
need to verify that in the end we don't end up with an
empty object name.

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
(cherry picked from commit c8ec532fadc0df36e4b265fe20a2ff3e35319744)
src/rgw/rgw_rest_s3.cc