RGWPutBucketObjectLock was not calling get_params(), so the 'data' it
was trying to parse was empty
RGWPutObjRetention was calling get_params() a second time, which
overwrote the 'data' from the first call
Signed-off-by: Casey Bodley <cbodley@redhat.com>
op_ret = -EINVAL;
return;
}
-
+ op_ret = get_params();
+ if (op_ret < 0) {
+ return;
+ }
if (!parser.parse(data.c_str(), data.length(), 1)) {
op_ret = -ERR_MALFORMED_XML;
return;
return;
}
- op_ret = get_params();
- if (op_ret < 0)
- return;
-
if (!parser.parse(data.c_str(), data.length(), 1)) {
op_ret = -ERR_MALFORMED_XML;
return;