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

Centralize FLE processing for IDL TypedCommands

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Execution
    • QE 2024-10-28

      IDL typed commands parse the incoming request in their constructor, and assign the parsed request to the `_request` member variable of the command.

      If FLE is used, then the request may need to get rewritten later, so that some request values get redacted. In this case the request object gets copied for the FLE processing.

      Currently some commands do this on their own at some point in their `typedRun()` or `explain()` methods. While working on [SERVER-71453|https://jira.mongodb.org/browse/SERVER-71453], denis.grebennicov@mongodb.com suggested to move the responsibility for FLE processing from the individual subclasses of TypedCommand into the TypedCommand base class.

      This would reduce code duplication and would also ensure that FLE processing cannot be forgotten in the future, if more commands get converted from BasicCommand to TypedCommand.

            Assignee:
            jan.steemann@mongodb.com Jan Steemann
            Reporter:
            jan.steemann@mongodb.com Jan Steemann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: