[Where problems could occur]
No problems foreseen because the exception is hit only in case of malformed json data, and not otherwise, and it is a desirable thing to catch and handle it instead of allowing process termination due to uncaught exception.
[Impact]
If improper json data is passed to rados, it can end up crashing the mon.
[Test Plan]
The malformed request looks like -
curl -k -H "Authorization: Basic $TOKEN" "https:/ /juju-3b3d82- 10-lxd- 0:8003/ request" -X POST -d '{"prefix":"auth add","entity" :"client. testuser02" ,"caps" :"mon '\''allow r'\'' osd '\''allow rw pool=testpool01 '\''"}'
The request status shows it is still in the queue.
[
"has_failed" : false,
"is_finished" : false,
"is_waiting" : false,
"command" : "auth add entity= client. testuser02 caps=mon 'allow r' osd 'allow rw pool=testpool01'",
"outb" : "",
"outs" : ""
{
"failed": [],
"finished": [],
"id": "140576245092648",
"running": [
{
}
],
"state": "pending",
"waiting": []
}
]
[Where problems could occur]
No problems foreseen because the exception is hit only in case of malformed json data, and not otherwise, and it is a desirable thing to catch and handle it instead of allowing process termination due to uncaught exception.
[Other Info] /tracker. ceph.com/ issues/ 54558 (including reproducer, and fix testing details) and fixed through https:/ /github. com/ceph/ ceph/pull/ 45547
Reported upstream at https:/
PR for Octopus is at https:/ /github. com/ceph/ ceph/pull/ 45891