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

Prevent rpc::upconvertRequest() from moving duplicate field in $queryOptions to top-level

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • ALL
    • Service Arch 2022-08-22

      The fuzzer can generate commands with the same field at the top-level and in the $queryOptions sub-object. Rpc::upconvertRequest() moves fields from the sub-object to the top-level, which later triggers an fassert due to there being duplicate fields. upconvertRequest() should throw ErrorCodes::InvalidOptions instead to prevent duplicate fields at the top-level.

            Assignee:
            reo.kimura@mongodb.com Reo Kimura (Inactive)
            Reporter:
            reo.kimura@mongodb.com Reo Kimura (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: