DescriptorList#newInstanceFromRadioList() and ExtensionDescriptorList#newInstanceFromRadioList() may throw undocumented runtime JSONException

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Jenkins 2.224

      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

            Assignee:
            Oleg Nenashev
            Reporter:
            Oleg Nenashev
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: