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

UsernamePasswordAuthenticationToken cannot be cast to AssemblaAuthenticationToken

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • assembla-auth-plugin, core
    • Jenkins 2.5 (installed via apt-get upgrade), master only
      Also: Jenkins 2.7 (installed via apt-get install)

      Assembla Auth Plugin 1.06
      Credentials Plugin 1.27

      Ubuntu 14.04.4 LTS (GNU/Linux 3.13.0-74-generic x86_64)

      Jenkins Authorization is integrated with Assembla's auth. Security Realm uses Assembla Auth Plugin.

      Jobs finish with FAILURE status with the following error message (always the last item in the console log) :

      FATAL: org.acegisecurity.providers.UsernamePasswordAuthenticationToken cannot be cast to com.assembla.jenkinsci.plugin.AssemblaAuthenticationToken
      java.lang.ClassCastException: org.acegisecurity.providers.UsernamePasswordAuthenticationToken cannot be cast to com.assembla.jenkinsci.plugin.AssemblaAuthenticationToken
      	at com.assembla.jenkinsci.plugin.AssemblaSecurityRealm.loadUserByUsername(AssemblaSecurityRealm.java:333)
      	at hudson.model.User$UserIDCanonicalIdResolver.resolveCanonicalId(User.java:1050)
      	at hudson.model.User.get(User.java:395)
      	at hudson.model.User.get(User.java:364)
      	at hudson.plugins.git.GitChangeSet.findOrCreateUser(GitChangeSet.java:374)
      	at hudson.plugins.git.GitChangeSet.getAuthor(GitChangeSet.java:435)
      	at hudson.model.AbstractBuild.getCulprits(AbstractBuild.java:350)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:669)
      	at hudson.model.Run.execute(Run.java:1766)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      	at hudson.model.ResourceController.execute(ResourceController.java:98)
      	at hudson.model.Executor.run(Executor.java:410)
      Finished: FAILURE
      

      This behaviour didn't occur in the previous Jenkins version 1.6.x

            paveld Pavel Dotsulenko
            jakub Jakub Czaplicki
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: