[GODRIVER-603] ChangeStream should not panic when a user changes ResumeToken Created: 17/Oct/18  Updated: 28/Oct/23  Resolved: 27/Nov/18

Status: Closed
Project: Go Driver
Component/s: CRUD
Affects Version/s: 0.0.16
Fix Version/s: 0.1.0

Type: Bug Priority: Major - P3
Reporter: Kristofer Brandow (Inactive) Assignee: Isabella Siu (Inactive)
Resolution: Fixed Votes: 0
Labels: beta, neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Currently, when using a change stream, if a user specifies a $replaceRoot modifier, and the document has an _id field, the driver will blindly attempt to convert the _id field returned from the change stream document as a BSON document. When the _id field is an objectid.ObjectID this causes a panic.



 Comments   
Comment by Githook User [ 27/Nov/18 ]

Author:

{'name': 'Isabella Siu', 'email': 'isabella.siu@10gen.com'}

Message: GODRIVER-603 changestream shouldn't panic when a user changes resumetoken

Change-Id: Ib495b53b1ca1867dc1c4f48a654e8f8405737839
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/397cb6ade77895c484f9fe3a3f672f12c178cc28

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