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

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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.8.0-rc0
    • Legacy C++ Implementation
    • mongoimport
    • OS X Snow Leopard, Windows 2003 R2 (32-bit)

    Description

      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

      Attachments

        Activity

          People

            Unassigned Unassigned
            ian@mongodb.com Ian Whalen (Inactive)
            Votes:
            17 Vote for this issue
            Watchers:
            13 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: