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

Pass serialization context into makeFromFindCommand

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • Server Serverless 2023-08-07

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: