Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-57

Creating a document which contains key with dots (.) embedded is allowed with mongoimport

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Done
    • Legacy C++ Implementation
    • 2.8.0-rc0
    • mongoimport
    • mongoimport vs mongoshell

    Description

      When using mongoimport, creating a document which contains dots in a key is possible. however, this should not be allowed, since it would never be queryable.

      example
      -------
      mongoimport -d test -c invalidjson --file ivalid.json (use attached file)

      This is allowed using mongoimport, but actually the document is invalid. Can you add a check on this when importing data? mongoshell is ok. that returns a correct error.

      Attachments

        Issue Links

          Activity

            People

              adinoyi.omuya@mongodb.com Adinoyi Omuya
              ian@mongodb.com Ian Whalen (Inactive)
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: