]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
radosgw-admin: 'user create' rejects uids matching the account id format 60980/head
authorCasey Bodley <cbodley@redhat.com>
Mon, 25 Nov 2024 18:07:46 +0000 (13:07 -0500)
committerCasey Bodley <cbodley@redhat.com>
Fri, 6 Dec 2024 14:51:37 +0000 (09:51 -0500)
commitc16dc7ed8c2224ea72ede3bff10bdf2ca7810828
tree1d1a60079f3eb2f46c2ffb61721fe1fc7a144644
parent2e6e0fbf4fb88173e5804431557a61e2c5123a2e
radosgw-admin: 'user create' rejects uids matching the account id format

`parse_owner()` relies on `rgw::account::validate_id()` to disambiguate
between user ids and account ids. reject attempts to create a user with
an ambiguous user id

Fixes: https://tracker.ceph.com/issues/69043
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 5378cfe3c5bf5953b53beee42975d045759238b1)
src/rgw/driver/rados/rgw_user.cc