-
Type:
Bug
-
Status: Resolved (View Workflow)
-
Priority:
Minor
-
Resolution: Fixed
-
Component/s: core
-
Labels:None
-
Environment:jenkins 2.86-SNAPSHOT
-
Similar Issues:
TestCase #1:
- Go to /jenkins/configure page
- Set "# of executors" == any line, not a number
Expected result: Validation error -Not a number
Actual result: No validation error - Click Apply
Expected result: Validation error -Not a number. New configuration was not saved.
Actual result: Error page:net.sf.json.JSONException: JSONObject["numExecutors"] is not a number. at net.sf.json.JSONObject.getDouble(JSONObject.java:1948) at net.sf.json.JSONObject.getInt(JSONObject.java:1967) at jenkins.model.MasterBuildConfiguration.configure(MasterBuildConfiguration.java:54) at jenkins.model.Jenkins.configureDescriptor(Jenkins.java:3715) at jenkins.model.Jenkins.doConfigSubmit(Jenkins.java:3679) ..........
---------------------------------------------------
TestCase #2:
- Go to /jenkins/configure page
- Set "# of executors" == any negative number
Expected result == Actual result: Validation error -Not a number
- Click Apply
Expected result: Validation error -Not a number. New configuration was not saved.
Actual result: New configuration saved.
New PR #3292 contains bugfixes.