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

Remove the field name validation in projection executor utils

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Optimization
    • ALL

      The helper applyProjectionToOneField() in projection_executor_utils validates the field names by default, which is redundant. The validation happens on construction of a FieldPath, here

      Since field names with '$' and '.' is allowed, the caller of this helper may pass in valid field names like "a.$b" then fail the validation.

            Assignee:
            ruoxin.xu@mongodb.com Ruoxin Xu
            Reporter:
            ruoxin.xu@mongodb.com Ruoxin Xu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: