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

Invaid characters on JSON import

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Works as Designed
    • None
    • No version
    • Import/Export
    • None
    • Not Needed

    Description

      Problem Description

      While importing a JSON file in compass it is possible to have invalid characters in the document which causes issues later on for example accessing that information is not possible

      Steps to Reproduce

      Start Compass

      Create DB, Collection

      Select Import JSON file

      Pick a malformed file

      Expected Results

      Import should fail providing an error about invalid data inside the file being imported

      Actual Results

      Malformed JSON file gets imported as is

      Additional Notes

      Example file data:

      {

      "asx:abap": {
      "@xmlns:asx": "http://www.sap.com/abapxml",
      "@version": "1.0",
      "asx:values": {}

      }}

      Attachments

        1. bug.png
          bug.png
          9 kB
        2. screenshot-1.png
          screenshot-1.png
          9 kB
        3. screenshot-2.png
          screenshot-2.png
          10 kB
        4. Screen Shot 2022-02-23 at 10.27.45 AM.png
          Screen Shot 2022-02-23 at 10.27.45 AM.png
          86 kB

        Activity

          People

            Unassigned Unassigned
            unfold1911@gmail.com John Smith
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: