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

WriteConcernOptions::parse should verify that the "w" field is an acceptable string

    • Type: Icon: Task Task
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Replication

      Currently it will parse and return an invalid string (for ex. "invalid"). We should check this rather than letting the invalid string propagate up.

      Here: https://github.com/mongodb/mongo/blob/r3.6.1/src/mongo/db/write_concern_options.cpp#L140-L148

      cc esha.maharishi

            Assignee:
            backlog-server-repl [DO NOT USE] Backlog - Replication Team
            Reporter:
            kaitlin.mahar@mongodb.com Kaitlin Mahar
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: