Uploaded image for project: 'Keycloak'
  1. Keycloak
  2. KEYCLOAK-8049

Nullpointer when create group policy for the root node

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 4.2.1.Final, 4.3.0.Final, 4.8.2.Final
    • Fix Version/s: None
    • Component/s: None
    • Steps to Reproduce:
      Hide

      Hi,

      i have a new keycloak system with no groups added.

      Add a new bearer client
      Enable permissions
      Click on manage link
      Click on Create Policy [Group]
      Set name
      Click on root element [Groups]
      Click Save
      Error

      Show
      Hi, i have a new keycloak system with no groups added. Add a new bearer client Enable permissions Click on manage link Click on Create Policy [Group] Set name Click on root element [Groups] Click Save Error
    • Docs QE Status:
      NEW
    • QE Status:
      NEW

      Description

      Hi,

      I wan't to set an manage permission for groups at the "realm-management" client. So a policy is required, but when I want to save the policy for root-group a nullpointer exception is created (The group tree is empty) with following Stacktrace:

      2018-08-14 14:06:22,540 ERROR [org.keycloak.services.error.KeycloakErrorHandler] (default task-56) Uncaught server error: java.lang.NullPointerException
      at org.keycloak.authorization.policy.provider.group.GroupPolicyProviderFactory.updatePolicy(GroupPolicyProviderFactory.java:176)
      at org.keycloak.authorization.policy.provider.group.GroupPolicyProviderFactory.onCreate(GroupPolicyProviderFactory.java:94)
      at org.keycloak.authorization.policy.provider.group.GroupPolicyProviderFactory.onCreate(GroupPolicyProviderFactory.java:44)
      at org.keycloak.models.utils.RepresentationToModel.toModel(RepresentationToModel.java:2157)
      at org.keycloak.authorization.AuthorizationProvider$3.create(AuthorizationProvider.java:337)
      at org.keycloak.authorization.admin.PolicyService.create(PolicyService.java:146)
      at org.keycloak.authorization.admin.PolicyService.create(PolicyService.java:117)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:140)
      ...

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                redmann Alexander Redmann
              • Votes:
                2 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated: