Bug #41429
closed
Incorrect logical operator in Monitor::handle_auth_request()
Added by yupeng chen over 4 years ago.
Updated over 4 years ago.
Description
When checking auth_mode against AUTH_MODE_MON and AUTH_MODE_MON_MAX in Monitor::handle_auth_request(),
a logical AND (&&) operator produces a contradiction.
“&&” in the following code snippet:
} else if (auth_meta->auth_mode < AUTH_MODE_MON &&
auth_meta->auth_mode > AUTH_MODE_MON_MAX) {
derr << __func__ << " unrecognized auth mode " << auth_meta->auth_mode
<< dendl;
return -EACCES;
}
- Project changed from Ceph to RADOS
- Category deleted (
Monitor)
- Target version changed from v14.2.2 to v15.0.0
- Start date deleted (
08/26/2019)
- Backport set to nautilus,mimic
- Affected Versions deleted (
v14.2.0, v14.2.1, v14.2.2, v15.0.0)
- Component(RADOS) Monitor added
- Assignee set to Neha Ojha
- Backport deleted (
nautilus,mimic)
- Status changed from New to Fix Under Review
- Backport set to nautilus
- Pull request ID set to 30015
- Status changed from Fix Under Review to Pending Backport
- Assignee deleted (
Neha Ojha)
- Copied to Backport #41705: nautilus: Incorrect logical operator in Monitor::handle_auth_request() added
- Status changed from Pending Backport to Resolved
While running with --resolve-parent, the script "backport-create-issue" noticed that all backports of this issue are in status "Resolved" or "Rejected".
Also available in: Atom
PDF