[SERVER-29739] Cursor array access does not work reliably Created: 20/Jun/17 Updated: 29/Jan/18 Resolved: 17/Aug/17 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | JavaScript, Shell |
| Affects Version/s: | 3.3.5, 3.4.3 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Martin Altmayer | Assignee: | Mark Benvenuto |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||||||||||||||
| Issue Links: |
|
||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||
| Operating System: | ALL | ||||||||||||||||||||
| Steps To Reproduce: |
Note that a review is created for every odd item.
|
||||||||||||||||||||
| Sprint: | Platforms 2017-08-21 | ||||||||||||||||||||
| Participants: | |||||||||||||||||||||
| Description |
|
The MongoDB shell supports accessing a cursor's elements via array access, without first converting the cursor into an array: db.items.find(...)[0] Some notes:
|
| Comments |
| Comment by Kelsey Schubert [ 20/Jun/17 ] |
|
Hi martinaltmayer, Thanks for reporting this issue, and providing very clear reproduction steps. This change of behavior appears to be result of an upgrade to SpiderMonkey, Kind regards, |