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

DropCollection contains a duplicate "ns" field

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Critical - P2 Critical - P2
    • 3.1.3
    • Affects Version/s: 3.1.2
    • Component/s: Storage
    • Labels:
    • Fully Compatible
    • ALL
    • Hide
      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 }
      
      Show
      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 }

      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.

            Assignee:
            matt.dannenberg Matt Dannenberg
            Reporter:
            craig.wilson@mongodb.com Craig Wilson
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: