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

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 2.8.0-rc0
    • Affects Version/s: Legacy C++ Implementation
    • Component/s: mongoimport
    • Environment:
      mongoimport vs mongoshell

      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.

              Assignee:
              Adinoyi Omuya (Inactive)
              Reporter:
              Ian Whalen (Inactive)
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: