Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-2883

Handle boolean "ok" responses

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.13.0, 1.13.1
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      Currently the Go driver can handle integer and float "ok" values in server responses (e.g. "ok": 1.0). However, for at least one command, the server may return a boolean "ok" value (e.g. "ok": true, see SERVER-30968 and CLOUDP-164595 for details). If that happens, the Go driver will consider the response an error because it is not one of the expected values. Update the Go driver to handle boolean "ok" responses and treat "ok": true as a success.

      Definition of done:

            Assignee:
            steve.silvester@mongodb.com Steve Silvester
            Reporter:
            matt.dale@mongodb.com Matt Dale
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: