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

Incorrect error message when providing incorrect args to $out

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: 4.3.4
    • Fix Version/s: 4.4.0-rc0, 4.5.1
    • Component/s: Querying
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.4
    • Steps To Reproduce:
      Hide

      Run the following command via the shell:

      db.t.aggregate([{$out: {db: "testout"}}])

      Show
      Run the following command via the shell: db.t.aggregate( [{$out: {db: "testout"}}] )
    • Sprint:
      Query 2020-03-23

      Description

      The server outputs the following message when incorrect $out args are provided:
      "errmsg" : "$out $out must have only db and coll string arguments"

      1. $out appears twice
      2. the same message is shown if either db or coll args are provided (but not both)

        Attachments

          Activity

            People

            Assignee:
            ted.tuckman Ted Tuckman
            Reporter:
            tomer.yakir Tomer Yakir
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: