[JAVA-1286] DBObjectCodec always serializes the _id first Created: 20/Jun/14  Updated: 31/Mar/15  Resolved: 24/Jun/14

Status: Closed
Project: Java Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 3.0.0

Type: Bug Priority: Major - P3
Reporter: Ross Lawley Assignee: Jeffrey Yemin
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

This is too strict - as you can use _id in any position in sort / min / max

See test cases in: https://github.com/mongodb/mongo-java-driver/commit/c2d64e197a1cd858788ad3d1cf4123a8310f9e91



 Comments   
Comment by Jeffrey Yemin [ 31/Mar/15 ]

Closing all resolved 3.0.0 issues, as 3.0.0 has been tagged and released.

Comment by Githook User [ 30/Jan/15 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-1286: Fixed one broken Spock test
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/86d431a1916c5589622a92bcf757d293201184f8

Comment by Githook User [ 30/Jan/15 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-1286: Added EncoderContext class and passing an instance of it to Encoder.encode()
Added DecoderContext class and passing an insance of it to Decoder.decode().
Added EncoderContext.encodingCollectibleDocument property, which document codecs use to determine whether to encode the _id field first.
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/63d8bc6c893ff88b7a1566e8980f0b20b27a94f4

Comment by Githook User [ 25/Jun/14 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-1286: Fixed one broken Spock test
Branch: 3.0.x
https://github.com/mongodb/mongo-java-driver/commit/86d431a1916c5589622a92bcf757d293201184f8

Comment by Githook User [ 24/Jun/14 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-1286: Added EncoderContext class and passing an instance of it to Encoder.encode()
Added DecoderContext class and passing an insance of it to Decoder.decode().
Added EncoderContext.encodingCollectibleDocument property, which document codecs use to determine whether to encode the _id field first.
Branch: 3.0.x
https://github.com/mongodb/mongo-java-driver/commit/63d8bc6c893ff88b7a1566e8980f0b20b27a94f4

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