[CSHARP-2303] When reading an extended JSON BsonTimestamp be lenient about element order Created: 19/Jun/18  Updated: 28/Oct/23  Resolved: 19/Jun/18

Status: Closed
Project: C# Driver
Component/s: BSON, Json
Affects Version/s: 2.6.0
Fix Version/s: 2.7.0

Type: Improvement Priority: Major - P3
Reporter: Robert Stam Assignee: Robert Stam
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

When reading extended JSON either of the following should work:

{ $timestamp : { t : 1, i : 2 } }
 
{ $timestamp : { i : 2, t : 1 } } 

The order of the t and i elements should not matter.

Both orders are present in various JSON driven tests so we need to support both.



 Comments   
Comment by Githook User [ 19/Jun/18 ]

Author:

{'username': 'rstam', 'name': 'rstam', 'email': 'robert@robertstam.org'}

Message: CSHARP-2303: When reading an extended JSON BsonTimestamp be lenient about element order.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/5ec4bba3c7b1ab70480f7dfa3008416db21a2efe

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