foojayio / foojayio/discoapi

Broken redirect for IBM Semeru Open JDK 25 (OpenJ9) - package points to wrong GitHub release

Open
#143 1 comment 2 reactions 1 assignee Claimed by @HanSolo View on GitHub
bug
Dominant language
Java
Stars
154
Forks
17
PR merge metrics
No merged PRs in 30d

Description

### Description

The disco API package `97f7013bf7d5f5f57872e01936c58bfb` (`ibm-semeru-open-jdk_x64_linux_25.0.2.1.tar.gz`, distribution: `semeru`) has a redirect URL that points to the wrong GitHub release, resulting in a 404 when Gradle attempts to download the toolchain.

### Steps to reproduce

1. Query the package:
```
GET https://api.foojay.io/disco/v3.0/ids/97f7013bf7d5f5f57872e01936c58bfb
```

2. Follow the redirect:
```
GET https://api.foojay.io/disco/v3.0/ids/97f7013bf7d5f5f57872e01936c58bfb/redirect
```

3. The redirect resolves to:
```
https://github.com/ibmruntimes/semeru25-binaries/releases/download/jdk-25.0.2%2B10_openj9-0.57.0/ibm-semeru-open-jdk_x64_linux_25.0.2.1.tar.gz
```

4. This URL returns **HTTP 404** because the file `ibm-semeru-open-jdk_x64_linux_25.0.2.1.tar.gz` does not exist in the `jdk-25.0.2+10_openj9-0.57.0` release.

### Root cause

IBM published a newer release `jdk-25.0.2+10.1_openj9-0.57.0` (on Feb 25, 2026) which contains the file `ibm-semeru-open-jdk_x64_linux_25.0.2.1.tar.gz`. However, the disco API redirect still points to the older release tag `jdk-25.0.2+10_openj9-0.57.0`, which only contains files named with the old convention (e.g., `ibm-semeru-open-jdk_x64_linux_25.0.2_10_openj9-0.57.0.tar.gz`).

The correct redirect should point to:
```
https://github.com/ibmruntimes/semeru25-binaries/releases/download/jdk-25.0.2%2B10.1_openj9-0.57.0/ibm-semeru-open-jdk_x64_linux_25.0.2.1.tar.gz
```

### Impact

This breaks Gradle toolchain auto-provisioning for anyone requesting `{languageVersion=25, implementation=J9}`. The error seen in CI is:

```
Cannot find a Java installation on your machine matching: {languageVersion=25, vendor=any vendor, implementation=J9, nativeImageCapable=false}.
Some toolchain resolvers had provisioning failures: foojay (Unable to download toolchain matching the requirements
from 'https://api.foojay.io/disco/v3.0/ids/97f7013bf7d5f5f57872e01936c58bfb/redirect',
due to: Could not read '...' as it does not exist.)
```

This likely affects all Semeru packages for the `25.0.2.1` version, not just the `x64_linux` JDK.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.