[JIRA] [assembla-auth] (JENKINS-34948) UsernamePasswordAuthenticationToken cannot be cast AssemblaAuthenticationToken

2 views
Skip to first unread message

jakub.czaplicki@gmail.com (JIRA)

unread,
May 19, 2016, 6:43:02 AM5/19/16
to jenkinsc...@googlegroups.com
Jakub Czaplicki created an issue
 
Jenkins / Bug JENKINS-34948
UsernamePasswordAuthenticationToken cannot be cast AssemblaAuthenticationToken
Issue Type: Bug Bug
Assignee: Unassigned
Components: assembla-auth, core
Created: 2016/May/19 10:42 AM
Environment: Jenkins 2.5 (installed via apt-get upgrade), master only

Assembla Auth Plugin 1.06
Assembla plugin 1.4
Credentials Plugin 1.27

Ubuntu 14.04.4 LTS (GNU/Linux 3.13.0-74-generic x86_64)
Labels: authentication auth
Priority: Major Major
Reporter: Jakub Czaplicki

Jobs intermittently finish and fail with the following error message:

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

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265)
Atlassian logo

jakub.czaplicki@gmail.com (JIRA)

unread,
May 19, 2016, 6:44:01 AM5/19/16
to jenkinsc...@googlegroups.com
Jakub Czaplicki updated an issue
Change By: Jakub Czaplicki
Environment:
Jenkins 2.5 (installed via apt-get upgrade), master only 

Authorization integrated with  Assembla .

Assembla
 Auth Plugin 1.06

Assembla plugin 1.4
Credentials Plugin 1.27

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

jakub.czaplicki@gmail.com (JIRA)

unread,
May 19, 2016, 6:44:01 AM5/19/16
to jenkinsc...@googlegroups.com

jakub.czaplicki@gmail.com (JIRA)

unread,
May 19, 2016, 6:45:01 AM5/19/16
to jenkinsc...@googlegroups.com
Jakub Czaplicki updated an issue
Jenkins Authorization is integrated with Assembla's auth. Security Realm uses Assembla Auth Plugin.

Jobs intermittently finish and fail with the following error message:

{code:java}

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
{code}


This behaviour didn't occur in the previous Jenkins version 1.6.x
Reply all
Reply to author
Forward
0 new messages