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

Allow bson_serialization_type "any" in API V1 request/reply fields

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.9.0
    • Component/s: IDL
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      Repl 2021-03-08, Repl 2021-03-22

      Description

      We currently disallow a command's request parameter or reply field to have bson_serialization_type "any" because we cannot provide guarantees for its type compatibility for the stable API. However, there are still a lot of valid uses for bson_serialization_type "any", so we do need to support it and do basic compatibility checking for it.

      We should have an allowList that determines which types can have the "any" type, so that any new usage is only intentionally added.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              huayu.ouyang Huayu Ouyang
              Reporter:
              samy.lanka Samyukta Lanka
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: