[COMPASS-7316] The insert dialog does not catch insert errors Created: 09/Oct/23  Updated: 29/Oct/23  Resolved: 10/Oct/23

Status: Closed
Project: Compass
Component/s: None
Affects Version/s: None
Fix Version/s: 1.40.3

Type: Bug Priority: Blocker - P1
Reporter: Le Roux Bodenstein Assignee: Basit Chonka
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OS:
node.js / npm versions:
Additional info:


Documentation Changes: Not Needed
Sprint: Iteration Lambeosaurus

 Description   

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



 Comments   
Comment by Githook User [ 17/Oct/23 ]

Author:

{'name': 'Basit', 'email': '1305718+mabaasit@users.noreply.github.com', 'username': 'mabaasit'}

Message: fix(insert-document): handle invalid bson COMPASS-7316 (#4969)
Branch: investigate-update-preview
https://github.com/mongodb-js/compass/commit/2d07d1d88fdcc8e6816ad4b8e4fc110c2e167d56

Comment by Githook User [ 11/Oct/23 ]

Author:

{'name': 'Basit', 'email': '1305718+mabaasit@users.noreply.github.com', 'username': 'mabaasit'}

Message: fix(insert-document): handle invalid bson COMPASS-7316 (#4969)
Branch: ga-releases
https://github.com/mongodb-js/compass/commit/2d07d1d88fdcc8e6816ad4b8e4fc110c2e167d56

Comment by Githook User [ 10/Oct/23 ]

Author:

{'name': 'Basit', 'email': '1305718+mabaasit@users.noreply.github.com', 'username': 'mabaasit'}

Message: fix(insert-document): handle invalid bson COMPASS-7316 (#4969)
Branch: COMPASS-7244-add-generative-ai-package
https://github.com/mongodb-js/compass/commit/2d07d1d88fdcc8e6816ad4b8e4fc110c2e167d56

Comment by Githook User [ 10/Oct/23 ]

Author:

{'name': 'Basit', 'email': '1305718+mabaasit@users.noreply.github.com', 'username': 'mabaasit'}

Message: fix(insert-document): handle invalid bson COMPASS-7316 (#4969)
Branch: beta-releases
https://github.com/mongodb-js/compass/commit/2d07d1d88fdcc8e6816ad4b8e4fc110c2e167d56

Comment by Githook User [ 10/Oct/23 ]

Author:

{'name': 'Basit', 'email': '1305718+mabaasit@users.noreply.github.com', 'username': 'mabaasit'}

Message: fix(insert-document): handle invalid bson COMPASS-7316 (#4969)
Branch: COMPASS-7303-increase-timeout
https://github.com/mongodb-js/compass/commit/2d07d1d88fdcc8e6816ad4b8e4fc110c2e167d56

Comment by Githook User [ 10/Oct/23 ]

Author:

{'name': 'Basit', 'email': '1305718+mabaasit@users.noreply.github.com', 'username': 'mabaasit'}

Message: fix(insert-document): handle invalid bson COMPASS-7316 (#4969)
Branch: main
https://github.com/mongodb-js/compass/commit/2d07d1d88fdcc8e6816ad4b8e4fc110c2e167d56

Generated at Wed Feb 07 22:46:09 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.