-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
[JENKINS-42969] UnsupportedOperationException from Computer.addAction #2819
Conversation
super.getActions().add(a); | ||
} | ||
|
||
// TODO implement addOrReplaceAction, removeAction, removeActions, replaceActions |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
🐝 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🐝 and @reviewbybees done
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 anUnsupportedOperationException
since Jenkins 2.30. Such a call site was released in SECURITY-161.Desired reviewers
@reviewbybees