Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-7316

The insert dialog does not catch insert errors

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Blocker - P1 Blocker - P1
    • 1.40.3
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      OS:
      node.js / npm versions:
      Additional info:
    • Not Needed
    • Iteration Lambeosaurus

      The insert dialog doesn't report errors and it throws an uncaught rejection. Ignored in 1.40.2, blows up the app in main.

      For example:

      /** 
      * Paste one or more documents here
      */
      {
        "_id": {
          "$oid": ""
        }
      }
      

      causes:

      Uncaught (in promise) BSONError: input must be a 24 character hex string, 12 byte Uint8Array, or an integer

            Assignee:
            basit.chonka@mongodb.com Basit Chonka
            Reporter:
            leroux.bodenstein@mongodb.com Le Roux Bodenstein
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: