]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: set null version object acl issues 25044/head
authorTianshan Qu <tianshan@xsky.com>
Sun, 11 Nov 2018 11:56:51 +0000 (19:56 +0800)
committerTianshan Qu <tianshan@xsky.com>
Sun, 14 Apr 2019 14:46:05 +0000 (22:46 +0800)
commitca6e5c89e8d6da498da15f0eea4bcd4d271b44e9
tree9d0011fbbfaa7415fcb868fe0555c666efda9ff7
parentc307d34d49f7688b544bab0a7a669ccd46aab2a5
rgw: set null version object acl issues

1.set null version object acl will create empty index
RGWRados::set_attrs did not clear instance, so index prepare, complete got instance=null,
which lead to empty index 1000_<obj>_i_null.
there is no harm to create empty index, but listomapkeys to find that key.

2.if object is exist with versioned key, we can set none exists null version object
order:
1) enable bucket version
2) put obj
3) disable bucket version
4) set versoned_id=null acl will succeed which should not

Fixes: http://tracker.ceph.com/issues/36763
Signed-off-by: Tianshan Qu <tianshan@xsky.com>
src/rgw/rgw_rados.cc