]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw_file: ensure valid_s3_object_name for directories, too 13717/head
authorMatt Benjamin <mbenjamin@redhat.com>
Thu, 23 Feb 2017 21:02:07 +0000 (16:02 -0500)
committerAlexey Sheplyakov <asheplyakov@mirantis.com>
Wed, 1 Mar 2017 07:04:51 +0000 (11:04 +0400)
commite475bfaf7d3a1b0e54172083a92546560219665a
treefc786e6922e1d206abf3d04c4bc047ebaf1f67d4
parentd5a778ced47a7601cfcea79b660ba6367e740e01
rgw_file: ensure valid_s3_object_name for directories, too

The logic in RGWLibFS::mkdir() validated bucket names, but not
object names (though RGWLibFS::create() did so).

The negative side effect of this was not creating illegal objects
(we won't), but in a) failing with -EIO and b) more importantly,
not removing up the proposed object from FHCache, which produced a
boost assert when recycled.

Fixes: http://tracker.ceph.com/issues/19066
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
(cherry picked from commit eb1cd3b30c0504385f05bf2d2dd5e2251b7efed7)
src/rgw/rgw_file.cc