[SERVER-4389] Wrong $eq format crashes Created: 29/Nov/11 Updated: 11/Jul/16 Resolved: 13/Jan/12 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Aggregation Framework |
| Affects Version/s: | None |
| Fix Version/s: | 2.1.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Kristina Chodorow (Inactive) | Assignee: | Chris Westin |
| Resolution: | Done | Votes: | 0 |
| Labels: | aggregation | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Operating System: | ALL | ||||||||||||||||
| Participants: | |||||||||||||||||
| Description |
|
I used $eq: {result:"1-0"}instead of $eq:["result", "1-0"] and got:
Full pipeline:
|
| Comments |
| Comment by Chris Westin [ 13/Jan/12 ] |
|
This error message looks a lot better: { |
| Comment by auto [ 13/Jan/12 ] |
|
Author: {u'login': u'cwestin', u'name': u'U-tellus\\cwestin', u'email': u'cwestin@10gen.com'}Message: |
| Comment by Chris Westin [ 13/Jan/12 ] |
|
This doesn't crash anymore, but the error message is terrible: { I'm going to take a look at detecting earlier, and getting something like "the $eq operator requires an array of two operands," or something similar. |
| Comment by Chris Westin [ 29/Nov/11 ] |
|
I think that's because I haven't done proper error messages yet, but I'll check. I used assertions until I can merge with trunk and assign error numbers. |