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

Validation doesn't act correctly if create document with invalid id value

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 1.25.0
    • Labels:
      None
    • Environment:
      Mac, Windows
    • 2

      Problem Description

      Steps to Reproduce

      1. Click to Insert New document to the collection
      2. Switch to list view and go back to the {} JSON view
      --> _id value is autogenerated
      3. Update $oid" value to incorrect, for e.g. to:

      • "" (empty)
      • " " (space)
      • "1236"
      • too short
      • too long
      • etc.

      4. Click Insert button

      Expected Results

      Validation acts, "Insert not permitted while document contains errors." error message appears, Insert button is disabled  

      Actual Results

      "Inserting Document" message appears and is constantly displayed, form is not closing, data is not inserted, it's not possible to switch to list view.

      Additional Notes

      If in list view add new field of int type, enter correct number, switch to json view and update its value to incorrect (add letters for e.g.) then it works as expected:  "Insert not permitted while document contains errors." error message appears.

       

            Assignee:
            Unassigned Unassigned
            Reporter:
            olena.protsiuk@mongodb.com Olena Protsiuk (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: