Details
-
Bug
-
Resolution: Gone away
-
Critical - P2
-
None
-
1.8.4
-
None
Description
Summary
The bson.UnmarshalExtJSON function and its variants does not support ** the literals Infinity/-Infinity. While these values are not supported by the JSON spec, they can currently be stored in mongo documents.
How to Reproduce
https://play.golang.com/p/WNfYw7T_Si8
Additional Background
This has created problems for us when attempting to ingest mongo changestreams, since the messages emitted by our DB cannot be unmarshaled using bson.UnmarshalExtJSON.
To address this, I propose extending the JSON scanner to support Infinity and -Infinity as tokens.