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

AUTH_ROLE_MAPPER_ROLES_PROPERTIES ask for protocol on its value

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • None
    • 7.10.1.GA
    • Cloud, Configuration
    • None
      • RHPAM 7.10.1
      • Openshift 4
      • Operators
    • False
    • False
    • Undefined
    • Hide

      Adding protocol to value:

      file:///config/rolemapping.properties

      error disappears

      Show
      Adding protocol to value: file:///config/rolemapping.properties error disappears
    • Hide

      Configure an operator with provided config.

      Probably error is reproducible too running on host

      Show
      Configure an operator with provided config. Probably error is reproducible too running on host
    • 2021 Week 40-42 (from Oct 4), 2021 Week 43-45 (from Oct 25), 2021 Week 46-48 (from Nov 15), 2021 Week 49-51 (from Dec 6th)

      Defining an operator with:

      KieApp.yaml

      spec: 
        auth: 
          ldap: 
            ...
          roleMapper: 
            from: 
              kind: ConfigMap
              name: ldap-role-mapping-dev-v1
            replaceRole: false
            rolesProperties: /config/role-mapping.properties
        objects: 
          console: 
            env: 
              - name: AUTH_ROLE_MAPPER_ROLES_PROPERTIES
                value: /config/role-mapping.properties
      

      raises an error starting app:

      [core-systems-pam-kieserver-dev-rhpamcentr-28-qctjs] 07:01:29,396 DEBUG [org.jboss.security] (default task-7) PBOX00287: Failed to open properties file from URL: java.net.MalformedURLException
      : no protocol: /config/role-mapping.properties
      [core-systems-pam-kieserver-dev-rhpamcentr-28-qctjs]    at java.base/java.net.URL.<init>(URL.java:645)
      [core-systems-pam-kieserver-dev-rhpamcentr-28-qctjs]    at java.base/java.net.URL.<init>(URL.java:541)
      [core-systems-pam-kieserver-dev-rhpamcentr-28-qctjs]    at java.base/java.net.URL.<init>(URL.java:488)
      [core-systems-pam-kieserver-dev-rhpamcentr-28-qctjs]    at org.picketbox//org.jboss.security.auth.spi.Util.loadProperties(Util.java:286)
      [core-systems-pam-kieserver-dev-rhpamcentr-28-qctjs]    at org.picketbox//org.jboss.security.auth.spi.RoleMappingLoginModule.getRoleSets(RoleMappingLoginModule.java:127)
      [core-systems-pam-kieserver-dev-rhpamcentr-28-qctjs]    at org.picketbox//org.jboss.security.auth.spi.AbstractServerLoginModule.commit(AbstractServerLoginModule.java:233)
      [core-systems-pam-kieserver-dev-rhpamcentr-28-qctjs]    at java.base/javax.security.auth.login.LoginContext.invoke(LoginContext.java:729)
      [core-systems-pam-kieserver-dev-rhpamcentr-28-qctjs]    at java.base/javax.security.auth.login.LoginContext$4.run(LoginContext.java:665)
      [core-systems-pam-kieserver-dev-rhpamcentr-28-qctjs]    at java.base/javax.security.auth.login.LoginContext$4.run(LoginContext.java:663)
      [core-systems-pam-kieserver-dev-rhpamcentr-28-qctjs]    at java.base/java.security.AccessController.doPrivileged(Native Method)
      [core-systems-pam-kieserver-dev-rhpamcentr-28-qctjs]    at java.base/javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:663)
      [core-systems-pam-kieserver-dev-rhpamcentr-28-qctjs]    at 
      java.base/javax.security.auth.login.LoginContext.login(LoginContext.java:575)
      [core-systems-pam-kieserver-dev-rhpamcentr-28-qctjs]    at org.picketbox//org.jboss.security.authentication.JBossCachedAuthenticationManager.defaultLogin(JBossCachedAuthenticationManager.java:
      406)
      

              amadhusu Achyut Madhusudan (Inactive)
              afanjula@redhat.com Alberto Fanjul Alonso
              Jakub Schwan Jakub Schwan
              Jakub Schwan Jakub Schwan
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: