[SERVER-18420] DropCollection contains a duplicate "ns" field Created: 11/May/15  Updated: 19/Sep/15  Resolved: 15/May/15

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: 3.1.2
Fix Version/s: 3.1.3

Type: Bug Priority: Critical - P2
Reporter: Craig Wilson Assignee: Matt Dannenberg
Resolution: Done Votes: 0
Labels: ET
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Steps To Reproduce:

2015-05-11T15:27:36.852-0500 I CONTROL  [initandlisten]
2015-05-11T15:27:36.852-0500 I CONTROL  [initandlisten] targetMinOS: Windows 7/Windows Server 2008 R2
2015-05-11T15:27:36.852-0500 I CONTROL  [initandlisten] db version v3.1.3-pre-
2015-05-11T15:27:36.852-0500 I CONTROL  [initandlisten] git version: 9f0ceef0b37df2525cdebb172e6b05e2db8a2b20

// on an empty database

> use test
> db.foo.insert({x:1})
WriteResult({ "nInserted" : 1 })
> db.runCommand({drop: "foo"})
{ "ns" : "test.foo", "ns" : "test.foo", "nIndexesWas" : 1, "ok" : 1 }

Participants:

 Description   

The "drop" command returns duplicate "ns" fields. This will cause a number of drivers, in particular the .NET driver, to error out because we don't allow duplicate field names by default.



 Comments   
Comment by Githook User [ 15/May/15 ]

Author:

{u'username': u'dannenberg', u'name': u'matt dannenberg', u'email': u'matt.dannenberg@10gen.com'}

Message: SERVER-18420 fix double populating of result in dropCollection
Branch: master
https://github.com/mongodb/mongo/commit/6d88e820506ee85368eb703c176835a0595693b5

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