mongoimport fails when record contains dates before epoch with "Assertion: 10338:Invalid use of reserved field name"

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 2.8.0-rc0
    • Affects Version/s: Legacy C++ Implementation
    • Component/s: mongoimport
    • Environment:
      OS X Snow Leopard, Windows 2003 R2 (32-bit)

      When importing JSON files containing dates before epoch, import fails with "Assertion: 10338:Invalid use of reserved field name"

      Repro steps:

      ~>: echo '{ "d":

      {"$date":-1}

      }' > before_epoch.json
      ~>: cat before_epoch.json
      { "d":

      {"$date":-1}

      }
      ~>: bin/mongoimport -d test -c date2 --file before_epoch.json
      Mon Apr 5 09:43:37 Assertion: 10338:Invalid use of reserved field name

      Reproduced on OS X 1.4.0-x64, 1.5.1-pre-x64, Windows 2003R2 v1.4.0-x32

              Assignee:
              Unassigned
              Reporter:
              Ian Whalen (Inactive)
              Votes:
              17 Vote for this issue
              Watchers:
              13 Start watching this issue

                Created:
                Updated:
                Resolved: