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

XMLWordPrintableJSON

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

      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 (Inactive)
            Reporter:
            Sophia Tan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: