[SERVER-7791] Commands wrapped in $query reports wrong error message for unrecognized commands Created: 28/Nov/12 Updated: 11/Jul/16 Resolved: 04/Apr/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Sharding |
| Affects Version/s: | 2.3.1 |
| Fix Version/s: | 2.3.2 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Randolph Tan | Assignee: | Randolph Tan |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Operating System: | ALL | ||||||||||||
| Participants: | |||||||||||||
| Description |
works ok
gives you: { "$err" : "unrecognized command: secretCommand", "code" : 13390 }, which is expected. while:
gives you: { "$err" : "unrecognized command: $query", "code" : 13390 }, which is wrong |
| Comments |
| Comment by Randolph Tan [ 04/Apr/13 ] |
|
Fixed by this commit - The name of the command is correctly parsed (instead of simply getting the first BSON element) |