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

Aggregation as cursor error message missing closing quote

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 2.5.3
    • None
    • mongod 2.5.3
      mongo 2.4.2
    • ALL

    Description

      > db.messages.aggregate( [     {$project: {             "headers.Mime-Version":1,             _id:0         }     }, {$limit: 0} ])
      assert: command failed: { "ok" : 0, "errmsg" : "unrecognized field \"cursor" } : aggregate with cursor failed
      Error: Printing Stack Trace
          at printStackTrace (src/mongo/shell/utils.js:38:15)
          at doassert (src/mongo/shell/assert.js:6:5)
          at Function.assert.commandWorked (src/mongo/shell/assert.js:238:5)
          at DBCollection.aggregate (src/mongo/shell/collection.js:907:12)
          at (shell):1:13
      2013-10-16T14:33:44.254-0700 command failed: { "ok" : 0, "errmsg" : "unrecognized field \"cursor" } : aggregate with cursor failed at src/mongo/shell/assert.js:7
      >

      The error message seems to be missing closing " (eg: "unrecognized field \"cursor\"").

      Attachments

        Activity

          People

            matt.dannenberg Matt Dannenberg
            bjori Hannes Magnusson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: