[JIRA] (JENKINS-40796) NPE on getUserByUsername when using api/xml

0 views
Skip to first unread message

doronshai@gmail.com (JIRA)

unread,
Jan 4, 2017, 3:49:02 AM1/4/17
to jenkinsc...@googlegroups.com
Doron Shai created an issue
 
Jenkins / Bug JENKINS-40796
NPE on getUserByUsername when using api/xml
Issue Type: Bug Bug
Assignee: Pavel Dotsulenko
Components: assembla-auth, core
Created: 2017/Jan/04 8:48 AM
Environment: 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)
Labels: auth authentication
Priority: Major Major
Reporter: Doron Shai

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

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages