Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-5123

Aggregation Framework Group uassert error messages truncate field names

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1.1
    • Component/s: Aggregation Framework
    • Labels:
      None

      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
      }

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: