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

          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 ?

          Mark Waite added a comment -

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

          It will be visible in the update center and be offered as a plugin update by the plugin manager.

          Mark Waite added a comment - Once released, will it pop in the update center or will I have to update it manually to the latest stable version ? It will be visible in the update center and be offered as a plugin update by the plugin manager.

          Basil Crow added a comment -

          Basil Crow added a comment - Fixed in jenkinsci/reverse-proxy-auth-plugin#153 . Released in https://github.com/jenkinsci/reverse-proxy-auth-plugin/releases/tag/238.v82ceca_8417a_6 .

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

              Created:
              Updated:
              Resolved: