[CDRIVER-1967] Extended JSON int64 expects wrapping in $numberLong Created: 27/Dec/16  Updated: 03/May/17  Resolved: 07/Feb/17

Status: Closed
Project: C Driver
Component/s: json, libbson
Affects Version/s: 1.5.1
Fix Version/s: 1.7.0

Type: Improvement Priority: Major - P3
Reporter: Jeremy Mikola Assignee: A. Jesse Jiryu Davis
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates CDRIVER-1947 Improve libbson compatibility with th... Closed
Epic Link: libbson corpus

 Comments   
Comment by Githook User [ 29/Mar/17 ]

Author:

{u'username': u'jmikola', u'name': u'Jeremy Mikola', u'email': u'jmikola@gmail.com'}

Message: Update XFAILS for BSON corpus tests

CDRIVER-1883 was resolved, so regex-valid-005.phpt no longer fails.

CDRIVER-1966 and CDRIVER-1967 were addressed by a new bson_as_extended_json() function for CDRIVER-1947. These tests still fail, but can now depend on PHPC-941, which will update the driver to use that new function.
Branch: master
https://github.com/mongodb/mongo-php-driver/commit/59f3d9d3c415c36a275ddcee0321290d1ffc3656

Comment by Jeremy Mikola [ 05/Jan/17 ]

Correct. 64-bit integers in BSON should always be wrapped with "$numberLong". I believe the current behavior is to just print the literal number, which might also pose problems for some JSON parsers.

Comment by A. Jesse Jiryu Davis [ 04/Jan/17 ]

What's the bug? ... that we don't generate JSON with "$numberLong"?

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