[JIRA] (JENKINS-61345) DescriptorList#newInstanceFromRadioList() and ExtensionDescriptorList#newInstanceFromRadioList() may throw undocumented runtime JSONException

8 views
Skip to first unread message

o.v.nenashev@gmail.com (JIRA)

unread,
Mar 5, 2020, 7:09:04 AM3/5/20
to jenkinsc...@googlegroups.com
Oleg Nenashev started work on Bug JENKINS-61345
 
Change By: Oleg Nenashev
Status: Open In Progress
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

o.v.nenashev@gmail.com (JIRA)

unread,
Mar 5, 2020, 7:09:05 AM3/5/20
to jenkinsc...@googlegroups.com
Oleg Nenashev created an issue
 
Jenkins / Bug JENKINS-61345
DescriptorList#newInstanceFromRadioList() and ExtensionDescriptorList#newInstanceFromRadioList() may throw undocumented runtime JSONException
Issue Type: Bug Bug
Assignee: Unassigned
Components: core
Created: 2020-03-05 12:08
Priority: Minor Minor
Reporter: Oleg Nenashev

It was discovered during the analysis of https://github.com/jenkinsci/jenkins/pull/3969/

parent.getJSONObject(name) may throw a JSONException "if the key is not found or if the value is not a JSONObject". http://javadox.com/org.json/json/20151123/org/json/JSONObject.html#getJSONObject-java.lang.String- . In such case Jenkins will still throw a proper Error in the most of configuration form submissions, but it might become an issue for other API usages like Groovy plugin. So it is better to fix it

o.v.nenashev@gmail.com (JIRA)

unread,
Mar 5, 2020, 7:09:05 AM3/5/20
to jenkinsc...@googlegroups.com

o.v.nenashev@gmail.com (JIRA)

unread,
Mar 9, 2020, 8:51:08 AM3/9/20
to jenkinsc...@googlegroups.com

o.v.nenashev@gmail.com (JIRA)

unread,
Mar 9, 2020, 8:54:02 AM3/9/20
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages