Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-1352

few cases where even if JSON is invalid then also message appears IMPORTED SUCCSSFULLY

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.7.0
    • 0.7.0
    • Ranger
    • None

    Description

      few cases where even if JSON is invalid then also message appears IMPORTED SUCCSSFULLY.
      case 1:
      Json is correct but there is small mistake of case sensitivity instead true its True. so ideally this json is considered as invalid from jsonlint.
      but Ranger import pass in this case, but it does not import any policy.

      Case 2:
      if json file is empty , then also it says import successful, ideally it should failed saying invalid json or something appropriate.

      Attachments

        1. RANGER-1352.patch
          9 kB
          Ankita Sinha

        Issue Links

          Activity

            People

              ankita Ankita Sinha
              deepakhuawei Deepak Sharma
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: