]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw_file: ensure valid_s3_object_name for directories, too 13614/head
authorMatt Benjamin <mbenjamin@redhat.com>
Thu, 23 Feb 2017 21:02:07 +0000 (16:02 -0500)
committerMatt Benjamin <mbenjamin@redhat.com>
Thu, 23 Feb 2017 21:02:07 +0000 (16:02 -0500)
commiteb1cd3b30c0504385f05bf2d2dd5e2251b7efed7
tree78a7808e2db6c12cfd53f32dd42b53887264a2a0
parentabb6eec3a65026d3ef832038a4e86fdd19454839
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>
src/rgw/rgw_file.cc