-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
Jenkins 2.516.2 with Eclipse Adaptium jdk-17.0.16+8 and jdk-21.0.8.9
After updating Jenkins to 2.516.2 no plugins can be downloaded although proxy is configured correctly (testing the connection shows success in Jenkins). Could this be side effect of change in commit
https://github.com/jenkinsci/jenkins/commit/78b85ddc70bb0fd2fb23bced8da1f3cde3ad30f1
where in UpdateCenter.java following lines have been added:
As far as I understand the code the job.site should be always not null at this point, therefore the ProxyConfiguration.open(src) will not be called any longer.
Stacktrace:
java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 403 Forbidden" at java.base/sun.net.www.protocol.http.HttpURLConnection.doTunneling0(HttpURLConnection.java:2287) at java.base/sun.net.www.protocol.http.HttpURLConnection.doTunneling(HttpURLConnection.java:2159) at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185) at java.base/sun.net.www.protocol.http.HttpURLConnection.followRedirect0(HttpURLConnection.java:2925) at java.base/sun.net.www.protocol.http.HttpURLConnection.followRedirect(HttpURLConnection.java:2834) at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1945) at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1615) at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:223) at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1365) Caused: java.io.IOException: Failed to load https://updates.jenkins.io/download/plugins/pipeline-maven-api/1457.vf7a_de13b_c0d4/pipeline-maven-api.hpi to C:\buildenv\.jenkins\plugins\pipeline-maven-api.jpi.tmp at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1380) Caused: java.io.IOException: Failed to download from https://updates.jenkins.io/download/plugins/pipeline-maven-api/1457.vf7a_de13b_c0d4/pipeline-maven-api.hpi → https://get.jenkins.io/plugins/pipeline-maven-api/1457.vf7a_de13b_c0d4/pipeline-maven-api.hpi at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1407) at hudson.model.UpdateCenter$DownloadJob._run(UpdateCenter.java:2059) at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:2387) at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:2033) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317) at hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:121) at java.base/java.lang.Thread.run(Thread.java:1583)