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

Whitelist fix #73

Merged
merged 11 commits into from
Jun 24, 2019
Merged

Whitelist fix #73

merged 11 commits into from
Jun 24, 2019

Conversation

rachely3n
Copy link
Contributor

This addresses an issue with JEP-200 when we upgrade Jenkins to 2.164.

  • To summarize, after 2.102, classes that needed to be deserialized had to be whitelisted by Jenkins.

  • DownloadStepTest was having issues passing because MockExecutor had a non-whitelisted class to serialize (Storage.model.Objects).

By making the UploadModule transient, it is not deserialized and resolves the issue. UploadModule contains helper functions only and thus would not need to be serializable. This will also not be an issue once #71 is complete.

Also added method headers to all the steps if not already there.

Passed mvn verify.

Copy link
Contributor

@stephenashank stephenashank left a comment

Choose a reason for hiding this comment

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

Nice cleanup of all of this with the fix, mostly stylistic comments

Copy link
Contributor

@stephenashank stephenashank left a comment

Choose a reason for hiding this comment

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

LGTM

@rachely3n rachely3n merged commit 72a3a58 into jenkinsci:develop Jun 24, 2019
stephenashank pushed a commit that referenced this pull request Jul 9, 2019
* Made UploadModule transient to resolve deserialization security issue with JEP-200

* Made UploadModule not serializable and cleaned up abstractUpload/brought it to standards
stephenashank pushed a commit that referenced this pull request Jul 9, 2019
This reverts commit 6e45934.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants