Project

General

Profile

Actions

Bug #46985

closed

common: validate type CephBool cause 'invalid command json'

Added by Yanhu Cao almost 4 years ago. Updated about 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
% Done:

0%

Source:
Community (dev)
Tags:
Backport:
octopus,nautilus
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
Labels (FS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

  while (!validate_cmd(m_cct, p->second.desc, cmdmap, errss)) {
    ++p;
    if (p->first != prefix) {
      delete f;
      return on_finish(-EINVAL, "invalid command json", empty);
    }
  }

don't need to check prefix in while loop because previous already done.


Related issues 3 (0 open3 closed)

Related to rgw - Bug #47179: AdminSocket::do_accept() terminate called after throwing an instance of 'std::out_of_range'ResolvedBrad Hubbard

Actions
Copied to CephFS - Backport #47085: octopus: common: validate type CephBool cause 'invalid command json'ResolvedNathan CutlerActions
Copied to CephFS - Backport #47086: nautilus: common: validate type CephBool cause 'invalid command json'RejectedActions
Actions

Also available in: Atom PDF