Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-74842

ClassCastException in ReverseProxySecurityRealm#loadGroupByGroupname2

    • 238.v82ceca_8417a_6

      Hi,

      After updating to the latest 1.8.0, and started the instance, a bug arised in the security matrix in which we provide ldap group in order to handle ACL. (we use the plugin for HTTP Headers identification and LDAP matrix)

      Seems there is an unwanted cast somewhere

       

      java.lang.ClassCastException: class com.sun.jndi.ldap.LdapCtx cannot be cast to class org.springframework.ldap.core.DirContextAdapter (com.sun.jndi.ldap.LdapCtx is in module java.naming of loader 'bootstrap'; org.springframework.ldap.core.DirContextAdapter is in unnamed module of loader 'PluginClassLoader for reverse-proxy-auth-plugin' @2a7d1d53)

      Full log and screeshot attached. I have reverted for the moment.

       

      Thanks

          [JENKINS-74842] ClassCastException in ReverseProxySecurityRealm#loadGroupByGroupname2

          Robert Smith created issue -
          Basil Crow made changes -
          Summary Original: Reverse Proxy Auth Plugin 1.8.0 - LDAP Group bug New: ClassCastException in ReverseProxySecurityRealm#loadGroupByGroupname2
          Basil Crow made changes -
          Remote Link New: This issue links to "jenkinsci/reverse-proxy-auth-plugin#153 (Web Link)" [ 30202 ]
          Basil Crow made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Basil Crow made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]

          Basil Crow added a comment -

          Incremental build 1.8.1-rc235.d996a_db_d99a_8 is available for testing. The incremental build .hpi file is available from: https://github.com/jenkinsci/reverse-proxy-auth-plugin/pull/153/checks?check_run_id=32887895657

          mamamia Can you please test the incremental build and confirm the issue is resolved? For instructions on how to install a custom build, see: https://www.jenkins.io/doc/book/managing/plugins/#advanced-installation

          Basil Crow added a comment - Incremental build 1.8.1-rc235.d996a_db_d99a_8 is available for testing. The incremental build .hpi file is available from: https://github.com/jenkinsci/reverse-proxy-auth-plugin/pull/153/checks?check_run_id=32887895657 mamamia Can you please test the incremental build and confirm the issue is resolved? For instructions on how to install a custom build, see: https://www.jenkins.io/doc/book/managing/plugins/#advanced-installation

          Robert Smith added a comment -

          Many thanks, will give this a try around 6pm (UTC +1) and let you know

          Robert Smith added a comment - Many thanks, will give this a try around 6pm (UTC +1) and let you know

          Robert Smith added a comment - - edited

          The patch looks ok ! No more failure, and all the features that we use from this plugin seems to run correctly!

          Once released, will it pop in the update center or will I have to update it manually to the latest stable version ?

          Robert Smith added a comment - - edited The patch looks ok ! No more failure, and all the features that we use from this plugin seems to run correctly! Once released, will it pop in the update center or will I have to update it manually to the latest stable version ?
          Basil Crow made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Review [ 10005 ] New: Fixed but Unreleased [ 10203 ]
          Basil Crow made changes -
          Epic Link New: JENKINS-73255 [ 221250 ]

            basil Basil Crow
            mamamia Robert Smith
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: