Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-2277

Error thrown in KeyCloak integration: Kie Server managed by Business Central

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Explained
    • Affects Version/s: 7.4.0.GA
    • Fix Version/s: None
    • Component/s: Kie-Server
    • Labels:
    • Target Release:
    • Steps to Reproduce:
      Hide

      1. Integrate RHPAM with RHSSO.
      2. Try to start RHPAM instance, below error will be logged in server.log file

      ERROR [io.undertow.request] (default task-6) UT005023: Exception handling request to /business-central/rest/controller/server/default-kieserver: java.lang.IllegalStateException: Should never be called in Keycloak flow
      	at org.keycloak.adapters.undertow.KeycloakServletExtension$2.verify(KeycloakServletExtension.java:167)
      	at io.undertow.security.impl.SecurityContextImpl.login(SecurityContextImpl.java:198)
      	at io.undertow.servlet.spec.HttpServletRequestImpl.login(HttpServletRequestImpl.java:483)
      	at org.uberfire.ext.security.server.ServletSecurityAuthenticationService.login(ServletSecurityAuthenticationService.java:69)
      	at org.uberfire.ext.security.server.ServletSecurityAuthenticationService$Proxy$_$$_WeldClientProxy.login(Unknown Source)
      	at org.uberfire.ext.security.server.BasicAuthSecurityFilter.authenticate(BasicAuthSecurityFilter.java:125)
      	at org.uberfire.ext.security.server.BasicAuthSecurityFilter.doFilter(BasicAuthSecurityFilter.java:76)
      	at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
      	at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
      	at org.uberfire.ext.security.server.SecureHeadersFilter.doFilter(SecureHeadersFilter.java:110)
      	at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
      	at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
      	at org.uberfire.ext.security.server.SecurityIntegrationFilter.doFilter(SecurityIntegrationFilter.java:70)
      	at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
      	at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
      	at io.opentracing.contrib.jaxrs2.server.SpanFinishingFilter.doFilter(SpanFinishingFilter.java:55)
      	at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
      
      Show
      1. Integrate RHPAM with RHSSO. 2. Try to start RHPAM instance, below error will be logged in server.log file ERROR [io.undertow.request] ( default task-6) UT005023: Exception handling request to /business-central/ rest /controller/server/ default -kieserver: java.lang.IllegalStateException: Should never be called in Keycloak flow at org.keycloak.adapters.undertow.KeycloakServletExtension$2.verify(KeycloakServletExtension.java:167) at io.undertow.security.impl.SecurityContextImpl.login(SecurityContextImpl.java:198) at io.undertow.servlet.spec.HttpServletRequestImpl.login(HttpServletRequestImpl.java:483) at org.uberfire.ext.security.server.ServletSecurityAuthenticationService.login(ServletSecurityAuthenticationService.java:69) at org.uberfire.ext.security.server.ServletSecurityAuthenticationService$Proxy$_$$_WeldClientProxy.login(Unknown Source) at org.uberfire.ext.security.server.BasicAuthSecurityFilter.authenticate(BasicAuthSecurityFilter.java:125) at org.uberfire.ext.security.server.BasicAuthSecurityFilter.doFilter(BasicAuthSecurityFilter.java:76) at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61) at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131) at org.uberfire.ext.security.server.SecureHeadersFilter.doFilter(SecureHeadersFilter.java:110) at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61) at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131) at org.uberfire.ext.security.server.SecurityIntegrationFilter.doFilter(SecurityIntegrationFilter.java:70) at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61) at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131) at io.opentracing.contrib.jaxrs2.server.SpanFinishingFilter.doFilter(SpanFinishingFilter.java:55) at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)

      Description

      When integrating RHPAM with RHSSO, and using a Kie Server managed by Business Central, the following error is thrown (full logs attached):

      ERROR [io.undertow.request] (default task-2) UT005023: Exception handling request to /business-central/rest/controller/server/sample-server: java.lang.IllegalStateException: Should never be called in Keycloak flow

      Business Central can be accessed with configured used in KC.
      Kie Server can be accessed with configured used in KC.
      But Business Central cannot control Kie Server.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  elguardian Enrique González Martínez
                  Reporter:
                  abhumbe Abhijit Humbe
                  Tester:
                  Karel Suta
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: