[CSHARP-595] StackOverflowException on BsonObjectId.IConvertible.ToType Created: 09/Oct/12  Updated: 20/Mar/14  Resolved: 11/Oct/12

Status: Closed
Project: C# Driver
Component/s: None
Affects Version/s: 1.6
Fix Version/s: 1.6.1

Type: Bug Priority: Major - P3
Reporter: Atilla Yagci Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Visual Studio 10, Net 4.0



 Comments   
Comment by Craig Wilson [ 12/Oct/12 ]

pushed to master and x2.0

Comment by auto [ 12/Oct/12 ]

Author:

{u'date': u'2012-10-11T10:19:57-07:00', u'email': u'craiggwilson@gmail.com', u'name': u'Craig Wilson'}

Message: CSHARP-595: corrected issue with infinite recursion when converting a BsonValue to another BsonValue.
Branch: x2.0
https://github.com/mongodb/mongo-csharp-driver/commit/86b9d07d10cd57b372fcb06a60695c9dd62caf98

Comment by auto [ 12/Oct/12 ]

Author:

{u'date': u'2012-10-11T10:19:57-07:00', u'email': u'craiggwilson@gmail.com', u'name': u'Craig Wilson'}

Message: CSHARP-595: corrected issue with infinite recursion when converting a BsonValue to another BsonValue.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/0be5ae38ac477fb24045b39b76ce0860cc413c77

Comment by Craig Wilson [ 11/Oct/12 ]

In Code Review

Comment by Atilla Yagci [ 09/Oct/12 ]

BsonObjectId id1 = BsonObjectId.GenerateNewId();
BsonObjectId id2 = (BsonObjectId)((IConvertible)id1).ToType(typeof(BsonObjectId), null); // StackOverflowException

Generated at Wed Feb 07 21:37:17 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.