[SERVER-46705] Incorrect error message when providing incorrect args to $out Created: 09/Mar/20  Updated: 29/Oct/23  Resolved: 11/Mar/20

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: 4.3.4
Fix Version/s: 4.4.0-rc0, 4.7.0

Type: Bug Priority: Minor - P4
Reporter: Tomer Yakir Assignee: Ted Tuckman
Resolution: Fixed Votes: 0
Labels: qopt-team
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.4
Steps To Reproduce:

Run the following command via the shell:

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

Sprint: Query 2020-03-23
Participants:

 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)



 Comments   
Comment by Githook User [ 11/Mar/20 ]

Author:

{'username': 'TedTuckman', 'name': 'Ted Tuckman', 'email': 'ted.tuckman@mongodb.com'}

Message: SERVER-46705 Fix $out error message

(cherry picked from c3af5510e5b025db7d240c365ba7a34f010c3102)
Branch: v4.4
https://github.com/mongodb/mongo/commit/52d752838eb3cc5c09afeb2fea085c42e2409bd2

Comment by Githook User [ 11/Mar/20 ]

Author:

{'username': 'TedTuckman', 'name': 'Ted Tuckman', 'email': 'ted.tuckman@mongodb.com'}

Message: SERVER-46705 Fix $out error message
Branch: master
https://github.com/mongodb/mongo/commit/c3af5510e5b025db7d240c365ba7a34f010c3102

Generated at Thu Feb 08 05:12:13 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.