[JAVA-399] bad bson decode/encode Created: 21/Jul/11 Updated: 25/Jun/13 Resolved: 28/Apr/12 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | API |
| Affects Version/s: | 2.6 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | hadar | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 1 |
| Labels: | bson | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
linux ubuntu 10+ |
||
| Issue Links: |
|
||||||||
| Description |
|
bad decoding of bson long numbers. byte[] bsonobj1 = BSON.encode(new BasicDBObject("test", -6155364211098656392l)); |
| Comments |
| Comment by Jeffrey Yemin [ 28/Apr/12 ] |
|
The bug is actually in JsonParser. Numbers < Integer.MAX_VALUE were being turned into integers, including numbers Integer.MIN_VALUE. |
| Comment by Jeffrey Yemin [ 28/Apr/12 ] |
|
Duplicate of |