Documents JSON mode editor silently fails with syntax issues

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 1.48.3
    • Affects Version/s: 1.48.2
    • Component/s: CRUD
    • None
    • Environment:
      OS:
      node.js / npm versions:
      Additional info:
    • Not Needed
    • None
    • Developer Tools

      Video attached (in dev mode, GA/prod wouldn't show the error screen for the uncaught error)

      Steps to Reproduce

      How could an engineer replicate the issue you’re reporting?

      Edit a document in the EJSON editor view, updated a field to something invalid, for instance make the `_id` "$oid" value a number. Or for a number long, omit the strings around the number.
      Click "Replace", see that it wasn't replaced and there was no feedback.

      Expected Results

      Shows the error that happened parsing the EJSON.

      Actual Results

      Clicking "replace" doesn't do anything

      edit ejson uncaught error.mp4

            Assignee:
            Basit Chonka
            Reporter:
            Rhys Howell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: