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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: Legacy C++ Implementation
    • Fix Version/s: 2.8.0-rc0
    • Component/s: mongoimport
    • Labels:
    • Environment:
      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

              • Assignee:
                adinoyi.omuya Adinoyi Omuya
                Reporter:
                ian.whalen Ian Whalen
              • Votes:
                2 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: