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

Can't save AuthZ permissions and policies with admin events enabled

    XMLWordPrintable

    Details

    • Steps to Reproduce:
      Hide
      • Enable admin events
      • Create an identity provider with token exchange policy
      • Create a client
      • Enable token exchange permission for this client with this policy
      • Try to save permission or policy, result - 500 error
      Show
      Enable admin events Create an identity provider with token exchange policy Create a client Enable token exchange permission for this client with this policy Try to save permission or policy, result - 500 error
    • Docs QE Status:
      NEW
    • QE Status:
      NEW

      Description

      Can't save AuthZ permissions and policies for token exchange with admin events enabled.
      Line of code producing error - https://github.com/keycloak/keycloak/blob/4.5.0.Final/services/src/main/java/org/keycloak/authorization/admin/PolicyResourceService.java#L263

      Stack trace:

      Uncaught server error: java.lang.NullPointerException

      at org.keycloak.authorization.admin.PolicyResourceService.audit(PolicyResourceService.java:263)

      at org.keycloak.authorization.admin.PolicyResourceService.update(PolicyResourceService.java:95)

      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)

      at org.jboss.resteasy.core.ResourceMethodInvoker.internalInvokeOnTarget(ResourceMethodInvoker.java:510)

      at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTargetAfterFilter(ResourceMethodInvoker.java:401)

      at org.jboss.resteasy.core.ResourceMethodInvoker.lambda$invokeOnTarget$0(ResourceMethodInvoker.java:365)

      Pedro Igor is there any chance to fix it ASAP and include in next production release?

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  pcraveiro Pedro Igor
                  Reporter:
                  yuriy.yunikov Yuriy Yunikov
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: