-
Notifications
You must be signed in to change notification settings - Fork 103
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-61438] IllegalArgumentException for ChoiceParameter on bindJSON saving job configuration #182
Conversation
This fix #181 |
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.
No idea what the implications would be here, though it sounds like the risk of regression is low since affected code paths would have thrown IAE before. Needs a unit test at least; and then it would be wise to have a plugin PR demonstrating a test (with JenkinsRule.WebClient
) which requires this to succeed, using an incremental version of stapler-core
in I suppose provided
scope.
The jenkinsci/branch-api-plugin#185 do not pass the test. |
[x] Added test a case as request From my side it's ok |
Any chance to get this fixed in next LTS? |
TBD. |
To Be Do? Done |
Sorry, to be determined, based on when I can make time to do a review and cut a release. |
Sorry, have not found any time, will try to find another maintainer… |
Ok, please let me know so I can remove the patch from our production |
ping |
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.
Probable NPE in code without test coverage. Would only affect code that would have already thrown IAE, so not a regression, but looks like a mistake that should be fixed (or that portion of the patch simply reverted).
I did changes as per review and rebase against master |
…SON saving job configuration Return value itself if no converter found and expected type is Object
…SON saving job configuration Fix potential NPE
BTW this breaks the ability for reviewers to only look at incremental changes. For a small patch like this, it is not a big deal; for a larger patch it would mean starting the review from scratch. Suffices to do a true |
bindJSON of RequestImpl now returns value itself if no converter found and the expected type is Object.