-
Bug
-
Resolution: Fixed
-
Critical
-
jenkins-2.2
Runtime exceptions should be handled at least
Stacktrace:
May 12, 2016 12:24:18 AM hudson.init.impl.InstallUncaughtExceptionHandler$DefaultUncaughtExceptionHandler uncaughtException SEVERE: A thread (Download metadata thread/57) died unexpectedly due to an uncaught exception, this may leave your Jenkins in a bad way and is usually indicative of a bug in the code. java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.rangeCheck(ArrayList.java:653) at java.util.ArrayList.get(ArrayList.java:429) at jenkins.util.JSONSignatureValidator.verifySignature(JSONSignatureValidator.java:85) at hudson.model.UpdateSite.verifySignature(UpdateSite.java:224) at hudson.model.UpdateSite.updateData(UpdateSite.java:203) at hudson.model.UpdateSite.updateDirectlyNow(UpdateSite.java:175) at hudson.PluginManager.doCheckUpdatesServer(PluginManager.java:1408) at jenkins.model.DownloadSettings$DailyCheck.execute(DownloadSettings.java:121) at hudson.model.AsyncPeriodicWork$1.run(AsyncPeriodicWork.java:99) at java.lang.Thread.run(Thread.java:745)
Code changed in jenkins
User: Oleg Nenashev
Path:
core/src/main/java/hudson/PluginManager.java
core/src/main/java/jenkins/util/JSONSignatureValidator.java
http://jenkins-ci.org/commit/jenkins/1e6afbae3b82936602f28c402379e04d0b00a47e
Log:
JENKINS-34745- Prevent CheckUpdates PeriodicWork death if update site cert is missing (#2333)JENKINS-34745- Prevent CheckUpdates PeriodicWork death in the case of the missing update site signatureJENKINS-34745- Fix typo in the validatorJENKINS-34745- Fix the formatting of the validation message (cc @lanwen)