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

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.8.0-rc0
    • Legacy C++ Implementation
    • 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

        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: