Fortify ActiveDirectoryMailAddressResolver

This issue is archived. You can view it, but you can't modify it. Learn more

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.

            Assignee:
            rsandell
            Reporter:
            rsandell
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: