[SERVER-9088] printjson/printjsononeline JS helpers may attempt to access the 'DB' object (even if it doesn't exist) Created: 22/Mar/13 Updated: 11/Jul/16 Resolved: 25/Mar/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | JavaScript |
| Affects Version/s: | 2.4.0, 2.4.1 |
| Fix Version/s: | 2.4.2, 2.5.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Ben Becker | Assignee: | Ben Becker |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Operating System: | ALL |
| Participants: |
| Description |
|
This means that printjson() may not work in $where queries or MapReduce jobs. |
| Comments |
| Comment by auto [ 28/Mar/13 ] | |
|
Author: {u'date': u'2013-03-25T20:54:36Z', u'name': u'Ben Becker', u'email': u'ben.becker@10gen.com'}Message: | |
| Comment by Andy O'Neill [ 26/Mar/13 ] | |
|
Confirmed that this breaks tojson() in MapReduce code. I'm only commenting here because google doesn't know anything about this error yet, this may save someone an afternoon tracking a bug that is fixed in 2.4.2. This is the error message that is caused by this bug:
| |
| Comment by auto [ 25/Mar/13 ] | |
|
Author: {u'date': u'2013-03-25T20:54:36Z', u'name': u'Ben Becker', u'email': u'ben.becker@10gen.com'}Message: |