[GODRIVER-2883] Handle boolean "ok" responses Created: 28/Jun/23  Updated: 06/Dec/23  Resolved: 10/Jul/23

Status: Closed
Project: Go Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 1.13.0, 1.13.1

Type: Bug Priority: Major - P3
Reporter: Matt Dale Assignee: Steve Silvester
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-30968 dbCheck command shouldn't explicitly ... Closed
Documentation Changes: Not Needed
Documentation Changes Summary:

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:



 Comments   
Comment by Githook User [ 10/Jul/23 ]

Author:

{'name': 'Steven Silvester', 'email': 'steven.silvester@ieee.org', 'username': 'blink1073'}

Message: GODRIVER-2883 Handle boolean 'ok' responses (#1314)
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/4f9d1de5cddde95aa42de5001128588972d8df74

Comment by Steve Silvester [ 07/Jul/23 ]

https://github.com/mongodb/mongo-go-driver/pull/1314

Generated at Thu Feb 08 08:39:34 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.