]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Restore rgw_token
authorJesse F. Williamson <jfw@ibm.com>
Wed, 26 Feb 2025 21:48:26 +0000 (13:48 -0800)
committerJesse F. Williamson <jfw@ibm.com>
Mon, 17 Mar 2025 17:41:28 +0000 (10:41 -0700)
Signed-off-by: Jesse F. Williamson <jfw@ibm.com>
src/common/ceph_json.h
src/rgw/rgw_token.h

index ba4f07e620b118a452854fe2bef6e116885be790..547076d46503d0cd445099772df43aa97a88067c 100644 (file)
@@ -318,7 +318,7 @@ public:
 };
 
 template <typename IntegerT>
-requires ceph_json::detail::json_integer<IntegerT> ||
+requires ceph_json::detail::json_integer<IntegerT> 
 void decode_json_obj(IntegerT& val, JSONObj *obj)
 {
  auto r = ceph::parse<IntegerT>(obj->get_data());
index 3bf9adaf00b5bc2a77c020ec7bfa5c5c33f5df44..b2476596bec349efce1286bf22a33143d9b997fc 100644 (file)
@@ -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;
     }