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

Inherit API Parameters from command for validator evaluation

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.9.0
    • None
    • None
    • None
    • Fully Compatible
    • Query Execution 2021-02-22

    Description

      This was discovered under SERVER-51617, where the evaluation of a document validator for each insert/update command uses the ExpressionContext created at parse time of the validator. Currently, the validation is performed under a const context since access to the Collection object needs to be thread safe. This means that we can't just expose a 'reattachToOperationContext' sort of method, but may need to funnel through an OperationContext/ExpressionContext/APIParameters to the MatchExpression::matches and Expression::evaluate methods.

      Attachments

        Activity

          People

            arun.banala@mongodb.com Arun Banala
            nicholas.zolnierz@mongodb.com Nicholas Zolnierz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: