[JIRA] [bitbucket-oauth-plugin] (JENKINS-34792) Bitbucket plugin broken after Jenkins upgrade to 2.3

8 views
Skip to first unread message

herbert.fischer@crossengage.io (JIRA)

unread,
May 13, 2016, 6:06:21 AM5/13/16
to jenkinsc...@googlegroups.com
Herbert Fischer created an issue
 
Jenkins / Bug JENKINS-34792
Bitbucket plugin broken after Jenkins upgrade to 2.3
Issue Type: Bug Bug
Assignee: Unassigned
Components: bitbucket-oauth-plugin, bitbucket-plugin
Created: 2016/May/13 10:05 AM
Priority: Blocker Blocker
Reporter: Herbert Fischer

I started getting these errors inside a Maven build, after the upgrade to 2.3:

ERROR: Processing failed due to a bug in the code. Please report this to jenkins...@googlegroups.com
java.lang.ClassCastException: org.acegisecurity.providers.UsernamePasswordAuthenticationToken cannot be cast to org.jenkinsci.plugins.BitbucketAuthenticationToken
at org.jenkinsci.plugins.BitbucketSecurityRealm.loadUserByUsername(BitbucketSecurityRealm.java:162)
at hudson.model.User$UserIDCanonicalIdResolver.resolveCanonicalId(User.java:1048)
at hudson.model.User.get(User.java:394)
at hudson.model.User.get(User.java:363)
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.maven.reporters.MavenMailer.end(MavenMailer.java:72)
at hudson.maven.AbstractMavenBuilder.end(AbstractMavenBuilder.java:104)
at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:859)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
at hudson.model.Run.execute(Run.java:1738)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:410)
project=hudson.maven.MavenModuleSet@1d9d1d07[BUILD_integration_tests]

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

rainerh (JIRA)

unread,
May 13, 2016, 7:03:02 AM5/13/16
to jenkinsc...@googlegroups.com
Rainer Hermanns commented on Bug JENKINS-34792
 
Re: Bitbucket plugin broken after Jenkins upgrade to 2.3

Seems to be related to the security changes, JENKINS-34775 has similar exceptions.
Downgrading to 2.2 resolved the issue for me.

kristoffer@codedivision.com (JIRA)

unread,
May 18, 2016, 12:23:02 PM5/18/16
to jenkinsc...@googlegroups.com

chris.a.giddings@gmail.com (JIRA)

unread,
Jun 2, 2016, 4:48:01 PM6/2/16
to jenkinsc...@googlegroups.com

Kristoffer Peterhänsel

Where do I make that config change?

My builds and SSH file copy of those builds suceed, but when releasing the workflow afterward, it fails.

kristoffer@codedivision.com (JIRA)

unread,
Jun 2, 2016, 4:57:01 PM6/2/16
to jenkinsc...@googlegroups.com

It has to be set as a system property at start (JVM -D option). Not sure if there is another way to do it

scm_issue_link@java.net (JIRA)

unread,
Jun 4, 2016, 9:53:02 AM6/4/16
to jenkinsc...@googlegroups.com

Code changed in jenkins
User: Sam Clinckspoor
Path:
src/main/java/org/jenkinsci/plugins/BitbucketSecurityRealm.java
http://jenkins-ci.org/commit/bitbucket-oauth-plugin/ba0fcbd155c3adf3403929534cf9a3ba24239d28
Log:
JENKINS-34792 Don't cast inconvertible un/pw token

Fixes JENKINS-34792

scm_issue_link@java.net (JIRA)

unread,
Jun 4, 2016, 9:53:02 AM6/4/16
to jenkinsc...@googlegroups.com

Code changed in jenkins
User: mallowlabs
Path:
src/main/java/org/jenkinsci/plugins/BitbucketSecurityRealm.java
http://jenkins-ci.org/commit/bitbucket-oauth-plugin/6ee7820b70baeca2bc2bf919178c1b5bcf2f7db4
Log:
Merge pull request #1 from SamClinckspoor/JENKINS-34792

JENKINS-34792 Don't cast inconvertible un/pw token

mallowlabs@gmail.com (JIRA)

unread,
Jan 19, 2019, 8:55:03 AM1/19/19
to jenkinsc...@googlegroups.com
mallowlabs mallowlabs resolved as Fixed
 

Fixed bitbucket-oauth-plugin v0.5.

Change By: mallowlabs mallowlabs
Status: Open Resolved
Resolution: Fixed
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)
Reply all
Reply to author
Forward
0 new messages