ScoopInstaller / Java

📦 A bucket for Scoop, for Oracle Java, OpenJDK, Eclipse Temurin, IBM Semeru, Zulu, ojdkbuild, Amazon Corretto, BellSoft Liberica, SapMachine and Microsoft JDK.
https://scoop.sh
The Unlicense
258 stars 88 forks source link

oraclejdk: Can not download due to AuthParam parameter #257

Closed koushiroue closed 2 years ago

koushiroue commented 3 years ago
WARN  Scoop uses 'aria2c' for multi-connection downloads.
WARN  Should it cause issues, run 'scoop config aria2-enabled false' to disable it.
Installing 'oraclejdk' (15.0.2-7) [64bit]
Starting download with aria2 ...
Download: 04/02 10:54:00 [ERROR] CUID#8 - Download aborted. URI=https://download.oracle.com/otn-pub/java/jdk/15.0.2%2B7/Download: Exception: [AbstractCommand.cc:351] errorCode=22 URI=https://edelivery.oracle.com/otn-pub/java/jdk/15.0.2%2B7/Download: Download Results:
Download: gid   |stat|avg speed  |path/URI
Download: ======+====+===========+=======================================================
Download: d8a6be|ERR |       0B/s|D:/scoop/cache/oraclejdk#15.0.2-7#https_download.oracle.com_otn-pub_java_jdk_15.0.2_2B7_0d1cfde4252546c6931946de8db48ee2_jdk-15.0.2_windows-x64_bin.zip
Download: Status Legend:
Download: (ERR):error occurred.
Download: aria2 will resume download if the transfer is restarted.
Download: If there are any errors, then see the log file. See '-l' option in help/man page for details.

ERROR Download failed! (Error 22) HTTP response header was bad or unexpected
ERROR https://download.oracle.com/otn-pub/java/jdk/15.0.2%2B7/0d1cfde4252546c6931946de8db48ee2/jdk-15.0.2_windows-x64_bin.zip
    referer=https://download.oracle.com/otn-pub/java/jdk/15.0.2%2B7/0d1cfde4252546c6931946de8db48ee2/
    dir=D:\scoop\cache
    out=oraclejdk#15.0.2-7#https_download.oracle.com_otn-pub_java_jdk_15.0.2_2B7_0d1cfde4252546c6931946de8db48ee2_jdk-15.0.2_windows-x64_bin.zip

ERROR & 'D:\scoop\apps\aria2\current\aria2c.exe' --input-file='D:\scoop\cache\oraclejdk.txt' --user-agent='Scoop/1.0 (+http://scoop.sh/) PowerShell/5.1 (Windows NT 10.0; Win64; x64; Desktop)' --allow-overwrite=true --auto-file-renaming=false --retry-wait=2 --split=5 --max-connection-per-server=5 --min-split-size=5M --console-log-level=warn --enable-color=false --no-conf=true --follow-metalink=true --metalink-preferred-protocol=https --min-tls-version=TLSv1.2 --stop-with-process=3620 --continue --summary-interval 0 --header='Cookie: oraclelicense=accept-securebackup-cookie'

following the the download link on a fresh browser results in download fail relating with OTN licenses thingy, maybe relating to how oracle does things to their site now...

se35710 commented 3 years ago

Oracle has added a new AuthParam parameter to the download URL, which makes updating through scoop impossible.

https://download.oracle.com/otn-pub/java/jdk/16+36/7863447f0ab643c585b9bdebf67c69db/jdk-16_windows-x64_bin.zip?AuthParam=<number>_<md5>