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

Pass serialization context into makeFromFindCommand

    • Type: Icon: Task Task
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Server Serverless 2023-08-07

      makeFromFindCommand is used by FindCmd and directly calls FindCommandRequest::parse() without passing in a serialization context.  While we currently update the serialization context with VTS after constructing the find request, this doesn't work if we intend to check whether the supplied tenantId is received from $tenant or the security token/VTS (nonPrefixedTenantId).  We need to pass in a prepared serialization context to the parse() function to ensure its values can be consumed by ::deserializeForCommands() during parsing.

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

              Created:
              Updated:
              Resolved: