From 97c38d654c8c0b7e00836ac985f04e00b709cb60 Mon Sep 17 00:00:00 2001 From: "Jesse F. Williamson" Date: Wed, 26 Feb 2025 13:48:26 -0800 Subject: [PATCH] Restore rgw_token Signed-off-by: Jesse F. Williamson --- src/common/ceph_json.h | 2 +- src/rgw/rgw_token.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/ceph_json.h b/src/common/ceph_json.h index ba4f07e620b11..547076d46503d 100644 --- a/src/common/ceph_json.h +++ b/src/common/ceph_json.h @@ -318,7 +318,7 @@ public: }; template -requires ceph_json::detail::json_integer || +requires ceph_json::detail::json_integer void decode_json_obj(IntegerT& val, JSONObj *obj) { auto r = ceph::parse(obj->get_data()); diff --git a/src/rgw/rgw_token.h b/src/rgw/rgw_token.h index 3bf9adaf00b5b..b2476596bec34 100644 --- a/src/rgw/rgw_token.h +++ b/src/rgw/rgw_token.h @@ -82,13 +82,13 @@ namespace rgw { explicit RGWToken(const string& json) { JSONParser p; - p.parse(json); + p.parse(json.c_str(), json.length()); JSONDecoder::decode_json(RGWToken::type_name, *this, &p); } RGWToken& operator=(const std::string& json) { JSONParser p; - p.parse(json); + p.parse(json.c_str(), json.length()); JSONDecoder::decode_json(RGWToken::type_name, *this, &p); return *this; } -- 2.39.5