Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker - P1
    • Resolution: Fixed
    • Affects Version/s: 3.2.1
    • Fix Version/s: 3.2.2, 3.0.10, 3.3.1
    • Component/s: mongoexport
    • Labels:
      None
    • Environment:
      OSX, Amazon Linux
    • Backport Requested:
      v3.2, v3.0
    • Sprint:
      Server Tools F (01/29/16)

      Description

      This is a regression from 2.6.x.

      > db.artists.insert({ "name" : "Andy Warhol", "genome" :

      { "Pop Art" : 10 }

      })
      WriteResult(

      { "nInserted" : 1 }

      )

      > db.artists.insert({ "name" : "Quoted Andy Warhol", "genome" :

      { "\"Pop Art\"" : 10 }

      })
      Cannot use 'commands' readMode, degrading to 'legacy' mode
      WriteResult(

      { "nInserted" : 1 }

      )

      > db.artists.find()
      { "_id" : ObjectId("5699157cc42b4297c59e8165"), "name" : "Andy Warhol", "genome" :

      { "Pop Art" : 10 }

      }
      { "_id" : ObjectId("56991584c42b4297c59e8166"), "name" : "Quoted Andy Warhol", "genome" :

      { ""Pop Art"" : 10 }

      }

      > exit
      bye

      /tmp$ mongoexport --db test -c artists
      2016-01-15T10:51:52.266-0500 connected to: localhost
      {"_id":

      {"$oid":"5699157cc42b4297c59e8165"}

      ,"name":"Andy Warhol","genome":{"Pop Art":10.0}}
      2016-01-15T10:51:52.284-0500 Failed: json: error calling MarshalJSON for type bsonutil.MarshalD: cannot marshal [

      {"Pop Art" 10}

      ]: json: error calling MarshalJSON for type bsonutil.MarshalD: invalid character 'P' after object key

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gabriel.russell Gabriel Russell
                Reporter:
                dblock Daniel Doubrovkine
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: