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

NPE in security-zone update validation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0, 2.4.0
    • Ranger
    • None

    Description

      When a non-admin user attempts to update a security-zone with null description, the API fails with NPE due to the following line in SecurityZoneREST.java:

       

      } else if (!securityZone.getDescription().equals(existingSecurityZone.getDescription())) { 

      This should be updated to use Objects.equals() to avoid NPE.

      Attachments

        Activity

          People

            madhan Madhan Neethiraj
            madhan Madhan Neethiraj
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: