]> git-server-git.apps.pok.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:27 +0000 (16:27 -0700)
commit97a97c3c554f689dd3f987e63eaa2b9c5ec1dd0a
tree7f50e8a98d33d68d248cb380624423404e7a3cc7
parent7a0bd5bc2c6e5464f70b19154834448ac1e4c369
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