[SERVER-23136] Count command should return InvalidNamespace instead of BadValue Created: 14/Mar/16 Updated: 16/Sep/16 Resolved: 15/Mar/16 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Querying |
| Affects Version/s: | 3.2.4, 3.3.4 |
| Fix Version/s: | 3.3.4 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Kaloian Manassiev | Assignee: | Kaloian Manassiev |
| 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 | ||||
| Sprint: | Sharding 12 (04/01/16) | ||||
| Participants: | |||||
| Linked BF Score: | 0 | ||||
| Description |
|
Currently if the count command is called with bad namespace the parsing code returns code BadValue (2), which is not very descriptive. It should be changed to error code InvalidNamespace (73). |
| Comments |
| Comment by Githook User [ 16/Sep/16 ] |
|
Author: {u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}Message: Revert " This reverts commit f9af4a9f81e0fadb003215bd5e4a03b348ac1c99. |
| Comment by Githook User [ 16/Sep/16 ] |
|
Author: {u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}Message: |
| Comment by Kaloian Manassiev [ 15/Mar/16 ] |
|
This change the return code of the 'count' command from BadValue to InvalidNamespace in the case a bad collection name is specified. |
| Comment by Githook User [ 15/Mar/16 ] |
|
Author: {u'username': u'kaloianm', u'name': u'Kaloian Manassiev', u'email': u'kaloian.manassiev@mongodb.com'}Message: |
| Comment by Githook User [ 15/Mar/16 ] |
|
Author: {u'username': u'kaloianm', u'name': u'Kaloian Manassiev', u'email': u'kaloian.manassiev@mongodb.com'}Message: Revert " This reverts commit 643ef6752b12a9831cfd5e75e0795c3529b12389. |
| Comment by Githook User [ 15/Mar/16 ] |
|
Author: {u'username': u'kaloianm', u'name': u'Kaloian Manassiev', u'email': u'kaloian.manassiev@mongodb.com'}Message: |