Uploaded image for project: 'Magnolia UI'
  1. Magnolia UI
  2. MGNLUI-4365

NPE occurs in PermissionToolPresenter when group assigned to user doesn't exist in magnolia

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.5.10, 5.6.2
    • Component/s: None
    • Labels:
      None
    • Sprint:
      Kromeriz 133, Kromeriz 134
    • Story Points:
      1
    • Magnolia Release:
      5.5.10, 5.6.2

      Description

      Caused by: java.lang.NullPointerException
      	at info.magnolia.security.app.tools.permission.PermissionToolPresenter.getGroupRepresentation(PermissionToolPresenter.java:174)
      	at info.magnolia.security.app.tools.permission.PermissionToolPresenter.getGroupRole(PermissionToolPresenter.java:140)
      	at info.magnolia.security.app.tools.permission.PermissionToolPresenter.buildContainer(PermissionToolPresenter.java:117)
      	at info.magnolia.security.app.tools.AbstractSecurityToolPresenter.showResult(AbstractSecurityToolPresenter.java:80)
      	at info.magnolia.security.app.tools.action.ShowResultAction.execute(ShowResultAction.java:61)
      	at info.magnolia.ui.api.action.AbstractActionExecutor.execute(AbstractActionExecutor.java:62)
      

      This happens because #getGroupRole method expects that group which is assigned to user everytime exists in Magnolia, but this doesn't have to be true for example when LDAP is used.

        Attachments

          Activity

            People

            • Assignee:
              mdivilek Milan Divilek
              Reporter:
              mdivilek Milan Divilek
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: