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

Fortify ActiveDirectoryMailAddressResolver

XMLWordPrintable

      Seen in the wild

      WARNING	hudson.tasks.MailAddressResolver#resolve: hudson.plugins.active_directory.ActiveDirectoryMailAddressResolverImpl@157c0dd7 failed to resolve userX. Ignoring and moving on
      java.lang.ClassCastException: class org.acegisecurity.userdetails.UserDetails$1 cannot be cast to class hudson.plugins.active_directory.ActiveDirectoryUserDetail (org.acegisecurity.userdetails.UserDetails$1 is in unnamed module of loader org.eclipse.jetty.webapp.WebAppClassLoader @17f9344b; hudson.plugins.active_directory.ActiveDirectoryUserDetail is in unnamed module of loader jenkins.util.URLClassLoader2 @6033250)
      	at hudson.plugins.active_directory.ActiveDirectoryMailAddressResolverImpl.findMailAddressFor(ActiveDirectoryMailAddressResolverImpl.java:55)

      The actual root cause for the UserDetails being of other type than what the AD plugin expects is yet undetermined, but in the meantime it can be improved to at least not assume it will get what it expects out of the current UserDetailsService.

            rsandell rsandell
            rsandell rsandell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: