Uploaded image for project: 'JOC - JobScheduler Operations Center'
  1. JOC - JobScheduler Operations Center
  2. JOC-2030

Editing the permission through the"Textual Permission" view causes NullPointerException.

    XMLWordPrintable

Details

    • Fix
    • Status: Released (View Workflow)
    • Minor
    • Resolution: Fixed
    • 2.7.3
    • 2.7.4
    • JOC Cockpit GUI
    • None

    Description

      Current Behaviour: When the role is assigned, the "sos:products:joc " permission, and now if you try to edit through "Textual Permission" View to any other JOC related permission, then you get the below mentioned NullPointerException.

      REQUEST: ./iam/permission/rename
      PARAMS: {"identityServiceName":"Test_Certificate","auditLog":{},"controllerId":"","roleName":"fall","oldPermissionPath":"sos:products:joc","newPermission":{"permissionPath":"sos:products:joc:administration:certificates:view"}}
      USER: root
      2025-04-03T11:21:14,290 ERROR qtp1906808037-12565  c.s.j.c.JOCDefaultResponse                   - java.lang.NullPointerException: Cannot invoke "java.lang.Boolean.booleanValue()" because the return value of "com.sos.joc.model.security.permissions.Permission.getExcluded()" is null
      java.lang.NullPointerException: Cannot invoke "java.lang.Boolean.booleanValue()" because the return value of "com.sos.joc.model.security.permissions.Permission.getExcluded()" is null
      

      Here are the steps to reproduce the issue :

      • Navigate to the "Roles" sub-view, where the list of available roles is visible.
      • Add a role and assign it "sos:products:joc " permission.
      • In the top-right corner, the "≡" icon is displayed. Clicking the icon navigates to the "Textual Permission" view, which serves as an alternative to the "Graphical Permission" view and presents the permissions as a list of textual entries.
      • Individual permissions are modified or removed from a role using the pencil icon or the "X" icon, which appear when the mouse hovers over a permission.
      • Click the pencil icon and try changing the permission to another joc-related permission.
      • This will throw the Null Pointer exception as shown in the attached image.

      Desired Behaviour :

      • Editing the permission should not throw NullPointerException.

      Attachments

        Issue Links

          Activity

            People

              oh Oliver Haufe
              aakash-rao Aakash Rao
              Kanika Agrawal Kanika Agrawal
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: