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

Handle boolean "ok" responses

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 1.13.0, 1.13.1
    • None
    • None
    • 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?

    Description

      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:

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: