]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw_admin.cc: Handle pg_ver and source_zone explicitly 52007/head
authorTom Coldrick <tcoldrick@bloomberg.com>
Tue, 6 Jun 2023 13:54:43 +0000 (09:54 -0400)
committerTom Coldrick <tcoldrick@bloomberg.com>
Tue, 25 Jul 2023 09:32:24 +0000 (10:32 +0100)
commit5e7c4a52ca84f31ab2aa4a1bde3af42c75998ead
tree5e7bf948215ef69ff99dc975729019e2b61ab01e
parent8392e7dff7f37e091e252cffa59bce06f5f1b8c3
rgw_admin.cc: Handle pg_ver and source_zone explicitly

At present, the pg_ver and source_zone attrs are handled as if they're
strings, but are in fact unsigned integer types.  This means that when
dumped they yield invalid UTF-8 characters.  As well as hiding the
meaning of these attributes, this also means that we're not compliant
with RFC 8259 for JSON, which specifies that externally visible JSON
must be UTF-8 encoded [0].

[0]: https://rfc-editor.org/rfc/rfc8259#section-8.1

Signed-off-by: Tom Coldrick <tcoldrick@bloomberg.com>
qa/workunits/rgw/test_rgw_d4n.py
src/rgw/rgw_admin.cc