[JAVA-1609] DBCollection.createIndex is too strict about options value types Created: 06/Jan/15  Updated: 31/Mar/15  Resolved: 09/Jan/15

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

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


 Description   

For values that should be boolean, convert all numbers to boolean
For values that should be integer, convert all numbers to integer
For values that should be double, convert all numbers to double.

Otherwise we risk breaking existing clients that are relying on the server's laxity.



 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: Made index option values in DBCollection more lenient, so that we still support, for example,

{sparse : 1}

JAVA-1609
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/de5c8c7b79d79386d9922d2364cd9d59f5d4615d

Comment by Githook User [ 09/Jan/15 ]

Author:

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

Message: Made index option values in DBCollection more lenient, so that we still support, for example,

{sparse : 1}

JAVA-1609
Branch: 3.0.x
https://github.com/mongodb/mongo-java-driver/commit/de5c8c7b79d79386d9922d2364cd9d59f5d4615d

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