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

Getting "java.lang.String cannot be cast to java.util.List" after upgrading to saml-plugin 2.0.0

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • saml-plugin
    • OS: Amazon Linux release 2 (Karoo)
      Jenkins version: 2.282
      saml-plugin version: 2.0.0
    • saml-2.0.3

      After upgrading to 2.0.0, when users are redirected back to `/securityRealm/finishLogin ` the following exception is thrown:

      WARNING o.e.j.s.h.ContextHandler$Context#log: Error while serving http://jenkins.domain/securityRealm/finishLogin 
      java.lang.ClassCastException: java.lang.String cannot be cast to java.util.List 
              at org.jenkinsci.plugins.saml.SamlSecurityRealm.modifyUserFullName(SamlSecurityRealm.java:453) 
              at org.jenkinsci.plugins.saml.SamlSecurityRealm.doFinishLogin(SamlSecurityRealm.java:335) 
              at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627) 
              at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:396) 
      Caused: java.lang.reflect.InvocationTargetException 
      

      However if you continue into Jenkins, the user is authenticated and can browse freely. It will happen every time a user needs to be re-authenticated.

       

       

            ifernandezcalvo Ivan Fernandez Calvo
            drewrogers Drew
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: