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

Replace parseNamespaceFrom* calls with deserialize

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Serverless
    • Fully Compatible
    • Server Serverless 2023-07-24, Server Serverless 2023-08-21, Server Serverless 2023-09-04
    • 3

      NamespaceStringUtil::parseNamespaceFromRequest() is called in multiple command contexts, but it doesn't currently call `serializeForCommands` because no serialization context is provided.  We need to look through (IDL and hand rolled/non-IDL) requests and pass serialization-context pertinent data (ie. value of `expectPrefix`, whether or not tenantId is on the $tenant/security token) for commands that require this.

      We likely don't need to worry about any calls related to sharding or outside our target command list.  Targeted tests are currently not behaving as expected without this change, so those tests have a dependency on this fix.

            Assignee:
            hugh.tong@mongodb.com Hugh Tong (Inactive)
            Reporter:
            hugh.tong@mongodb.com Hugh Tong (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: