[SERVER-7104] jsonString has incorrect output on undefined BSON elements. Created: 21/Sep/12 Updated: 11/Jul/16 Resolved: 25/Sep/12 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 2.2.2, 2.3.0 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Shaun Verch | Assignee: | Shaun Verch |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||
| Backwards Compatibility: | Minor Change | ||||||||||||||||||||
| Operating System: | ALL | ||||||||||||||||||||
| Participants: | |||||||||||||||||||||
| Description |
|
Test case that fails: class SingleUndefinedMember { ", b.done().jsonString( Strict ) ); jsonString outputs " { undefined }" |
| Comments |
| Comment by auto [ 06/Nov/12 ] |
|
Author: {u'date': u'2012-09-21T20:08:02Z', u'email': u'shaun.verch@10gen.com', u'name': u'Shaun Verch'}Message: |
| Comment by Mathias Stearn [ 27/Sep/12 ] |
|
This should be backported to 2.2 because it breaks the new mongodump metadata.json files. See https://groups.google.com/forum/?fromgroups=#!topic/mongodb-user/DzxWmfS6oSY for an example of the issue. Marked as backward breaking because it changes tool output from broken to correct json. There is a tiny chance that some third-party tools will only accept the broken output while ours only accept correct output. |
| Comment by auto [ 25/Sep/12 ] |
|
Author: {u'date': u'2012-09-21T13:08:02-07:00', u'email': u'shaun.verch@10gen.com', u'name': u'Shaun Verch'}Message: |