Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JENKINS-42969] UnsupportedOperationException from Computer.addAction #2819

Merged
merged 1 commit into from
Mar 24, 2017

Conversation

jglick
Copy link
Member

@jglick jglick commented Mar 21, 2017

Description

See JENKINS-42969. Corrects a regression in #2624. Worked around in jenkinsci/ssh-agents-plugin#50.

Changelog entries

Proposed changelog entries:

  • Computer.addAction would throw an UnsupportedOperationException since Jenkins 2.30. Such a call site was released in SECURITY-161.

Desired reviewers

@reviewbybees

super.getActions().add(a);
}

// TODO implement addOrReplaceAction, removeAction, removeActions, replaceActions
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These were introduced in #2608 so there is no compatibility issue: they would never have worked on Computer.

@@ -106,6 +106,8 @@ public String getExpression() {
return Collections.unmodifiableList(actions);
}

// TODO implement addAction, addOrReplaceAction, removeAction, removeActions, replaceActions
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

addAction has always been there, but I think would not have worked for years, since before #1059. They would have started to work as of #2608 but stopped working again almost immediately as of #2624. So I believe there is no backward compatibility issue with these.

@ghost
Copy link

ghost commented Mar 21, 2017

This pull request originates from a CloudBees employee. At CloudBees, we require that all pull requests be reviewed by other CloudBees employees before we seek to have the change accepted. If you want to learn more about our process please see this explanation.

@varyvol
Copy link

varyvol commented Mar 22, 2017

🐝

Copy link
Member

@oleg-nenashev oleg-nenashev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐝 and @reviewbybees done

@oleg-nenashev oleg-nenashev added the needs-more-reviews Complex change, which would benefit from more eyes label Mar 22, 2017
@jglick jglick merged commit 1101b32 into jenkinsci:master Mar 24, 2017
@jglick jglick deleted the Computer.addAction-JENKINS-42969 branch March 24, 2017 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-more-reviews Complex change, which would benefit from more eyes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants