Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-72060

Tenant information on IDL command field is dropped off while parsing from BSONObj

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Server Serverless 2022-12-26
    • 1

      Here is an example of IDL generated command for renameCollection which has a namespacestring command parametet. The generated code drops off the tenant id.

       {      // skip correct codes.
              if (MONGO_likely(ctxt.checkAndAssertType(commandElement, String))) {
                  _commandParameter = NamespaceStringUtil::deserialize(boost::optional<mongo::TenantId>{}, commandElement.valueStringData());
              }
              else {
                  ctxt.throwMissingField(kCommandParameterFieldName);
              }
      }

      Actually, "NamespaceStringUtil::deserialize(ctxt.getTenantId(), commandElement.valueStringData())" is expected.

            Assignee:
            sophia.tan@mongodb.com Sophia Tan
            Reporter:
            sophia.tan@mongodb.com Sophia Tan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: