[GODRIVER-1890] Add nil client check when verifying transaction status in (Operation).Execute Created: 19/Feb/21  Updated: 28/Oct/23  Resolved: 01/Mar/21

Status: Closed
Project: Go Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 1.4.7

Type: Bug Priority: Major - P3
Reporter: Evgeni Dobranov Assignee: Benji Rewis (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Documentation Changes: Not Needed

 Description   

If an Operation is constructed with a nil client and then executed, it's possible to panic in a couple spots when verifying if the Operation is in a transaction:

  • For a WriteCommandError here
  • For a normal Error here


 Comments   
Comment by Githook User [ 01/Mar/21 ]

Author:

{'name': 'Benjamin Rewis', 'email': '32186188+benjirewis@users.noreply.github.com', 'username': 'benjirewis'}

Message: GODRIVER-1890 Add nil Client checks (#590)
Branch: release/1.5
https://github.com/mongodb/mongo-go-driver/commit/7087b5eebecffbcbea03f5d383b6c3ca9ee61cc6

Comment by Githook User [ 01/Mar/21 ]

Author:

{'name': 'Benjamin Rewis', 'email': '32186188+benjirewis@users.noreply.github.com', 'username': 'benjirewis'}

Message: GODRIVER-1890 Add nil Client checks (#590)
Branch: release/1.4
https://github.com/mongodb/mongo-go-driver/commit/2b75302780ab1a7e161b494c0b41044bd0e4caf7

Comment by Githook User [ 01/Mar/21 ]

Author:

{'name': 'Benjamin Rewis', 'email': '32186188+benjirewis@users.noreply.github.com', 'username': 'benjirewis'}

Message: GODRIVER-1890 Add nil Client checks (#590)
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/eef26fd4b53c1e7a3a42d8b784d32b3ce371aa66

Comment by Benji Rewis (Inactive) [ 19/Feb/21 ]

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

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