[SERVER-5123] Aggregation Framework Group uassert error messages truncate field names Created: 28/Feb/12  Updated: 11/Jul/16  Resolved: 05/Mar/12

Status: Closed
Project: Core Server
Component/s: Aggregation Framework
Affects Version/s: None
Fix Version/s: 2.1.1

Type: Improvement Priority: Minor - P4
Reporter: Ross Lawley Assignee: Chris Westin
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

Doing a group without an _id or with a $ operator - returns the errmsg with the field name truncated to first char:

In the shell:

> db.test.aggregate({$group: {bad_id: 1}})
{
	"errmsg" : "exception: the group aggregate field bmust be defined as an expression inside an object",
	"code" : 15951,
	"ok" : 0
}
>
>
> db.test.aggregate({$group: {$bad_op: 1}})
{
	"errmsg" : "exception: the group aggregate field name $ cannot be an operator name",
	"code" : 15950,
	"ok" : 0
}



 Comments   
Comment by auto [ 05/Mar/12 ]

Author:

{u'login': u'cwestin', u'name': u'Chris Westin', u'email': u'cwestin@yahoo.com'}

Message: Merge pull request #183 from rozza/SERVER-5123

SERVER-5123 - Cleaned up uassert errmsg
Branch: master
https://github.com/mongodb/mongo/commit/a8b86f17b717c968e298023ba00432f4dee462e6

Comment by auto [ 05/Mar/12 ]

Author:

{u'login': u'cwestin', u'name': u'Chris Westin', u'email': u'cwestin@yahoo.com'}

Message: Merge pull request #183 from rozza/SERVER-5123

SERVER-5123 - Cleaned up uassert errmsg
Branch: master
https://github.com/mongodb/mongo/commit/a8b86f17b717c968e298023ba00432f4dee462e6

Comment by Ross Lawley [ 28/Feb/12 ]

Pull request added: https://github.com/mongodb/mongo/pull/183

Generated at Thu Feb 08 03:07:58 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.