Corretto distribution_version loses build/revision components
@HanSolo がすでに取り組んでいます。
2026年10月6日 から。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 52/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- java
調査の方向性
Start with Corretto#getAllPkgsFromHtml in src/main/java/io/foojay/api/distribution/Corretto.java, especially lines 398–404, and compare its version handling with the linked Corretto build.gradle version configuration. Check how the parsed values populate distribution_version, java_version, and latest_build_available; done means the full distribution revision and OpenJDK patch are represented correctly and only the newest Corretto revision is marked available.
索引モデルが issue の本文から書いたものです。
説明
I'm seeing incorrect distribution_version values for recent Corretto releases.
For example, DiscoAPI returns these artifacts:
amazon-corretto-25.0.4.7.1-windows-x64-jdk.zip
amazon-corretto-25.0.4.8.1-windows-x64-jdk.zip
amazon-corretto-25.0.4.10.1-windows-x64-jdk.zip
but all three have:
"java_version": "25.0.4",
"distribution_version": "25.0.4",
"latest_build_available": true
The distribution_version should preserve the full Corretto version.
There also seems to be an issue with java_version. Corretto's changelog explicitly states that 25.0.4.8.1 updates its baseline to OpenJDK 25.0.4.1+1, but DiscoAPI still reports 25.0.4.
Looking at Corretto#getAllPkgsFromHtml, this seems related to:
versionNumber and vNumber reference the same object, so setPatch(0) also changes the value later used as distribution_version.
More importantly, this code assumes that the Java PATCH component is always zero. That is no longer valid for CSPU releases such as 25.0.4.1.
The Corretto build also treats the fourth component of its distribution version as the build number, while the Java PATCH value comes from the OpenJDK version configuration, so these two concepts cannot be derived from the same field.
Also, all three packages are currently marked as latest_build_available=true, which makes it impossible for clients to determine the newest Corretto revision from the structured metadata alone.
- 主要言語
- Java
- スター
- 155
- フォーク
- 18
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
foojayio/discoapi のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 32/100
-
oracle_open_jdk: JDK 27 GA build 35 still reported as 27-ea+35対応中かも @danishnawab が 30 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 52/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 62/100
foojayio/discoapi の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
apache/rocketmq-dashboard#6872 ·
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
ADORSYS-GIS/keycloak-oid4vp-plugin#232 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 2 日以内に返信
-
documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
devops-thiago/ThrillhouseBot#1132 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
carlos-emr/carlos#4732 ·
メンテナーはふだん 1 日以内に返信