Remove the field name validation in projection executor utils

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Optimization
    • Fully Compatible
    • ALL
    • v8.0, v7.0, v6.0
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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
            Reporter:
            Ruoxin Xu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: