-
Bug
-
Resolution: Unresolved
-
Minor
-
None
Jenkins does not handle redirects from HTTP to HTTPS URLs in update sites. So we cannot have HTTPS update sites, as all URLs in update-center.json are HTTP.
- is duplicated by
-
JENKINS-47819 Allow redirection from http to https and vise versa
-
- Resolved
-
- is related to
-
JENKINS-8028 Plugin update installer downloads "302 redirect" response as the .hpi file, then reports success.
-
- Resolved
-
-
JENKINS-32796 Can't update plugins: incorrect checksum
-
- Resolved
-
- links to
[JENKINS-38340] Jenkins cannot handle redirects from http to https URLs in update sites
Summary | Original: Update request does not recognize http response code(302) | New: Jenkins cannot handle redirects from http to https URLs in update sites |
Description |
Original:
Update request does not recognize http response code(302). So I could not update my jenkins and plugins. The error stack is blew: ``` java.io.IOException: Downloaded file /srv/ci/jenkins/jenkins-2.7.2.war.tmp does not match expected SHA-1, expected 'W4m2ln56+BGcUsfoYiO0dmVBeiI=', actual 'TWpBfQjCw6r1WAlKpmKg7XuzoGc=' at hudson.model.UpdateCenter.verifyChecksums(UpdateCenter.java:1783) at hudson.model.UpdateCenter.access$1100(UpdateCenter.java:147) at hudson.model.UpdateCenter$HudsonUpgradeJob.replace(UpdateCenter.java:2069) at hudson.model.UpdateCenter$UpdateCenterConfiguration.install(UpdateCenter.java:1178) at hudson.model.UpdateCenter$DownloadJob._run(UpdateCenter.java:1653) at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1624) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:110) at java.lang.Thread.run(Thread.java:745) ``` and I `cat` the file `/srv/ci/jenkins/jenkins-2.7.2.war.tmp`, it is: ``` <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>302 Found</title> </head><body> <h1>Found</h1> <p>The document has moved <a href="https://mirrors.tuna.tsinghua.edu.cn/jenkins/war/2.22/jenkins.war">here</a>.</p> </body></html> ``` redirect from `mirrors.jenkins-ci.org/updates/current/update-center.json` to `https://mirrors.tuna.tsinghua.edu.cn/jenkins/updates/current/update-center.json` The error stack is deceptive. |
New:
Jenkins does not handle redirects from HTTP to HTTPS URLs in update sites. So we cannot have HTTPS update sites, as all URLs in update-center.json are HTTP. |
Remote Link | New: This issue links to "PR 2552 (Web Link)" [ 14859 ] |
Link |
New:
This issue is related to |
Link |
New:
This issue is related to |
I update my jenkins Update Site to `https://mirrors.tuna.tsinghua.edu.cn/jenkins/updates/current/update-center.json`, but it always download from domain `http://updates.jenkins-ci.org`.
I want change ci from hudson to jenkins, but this make me very disappointed.