adoptium / adoptium/api.adoptium.net
JDK 21 EA API request doesn't return latest build
- Dominant language
- Kotlin
- Stars
- 44
- Forks
- 36
- Avg merge
- 5h 27m
- Merged PRs (30d)
- 42
Description
**Describe the bug**
When I attempt to get the latest nightly, then the API returns a 3-weeks old release. This one:
https://github.com/adoptium/temurin21-binaries/releases/jdk-21.0.1%2B12-ea-beta/
However, there has been newer builds since. For example this one from two days ago:
https://github.com/adoptium/temurin21-binaries/releases/jdk21u-2023-11-08-15-55-beta
**To Reproduce**
Steps to reproduce the behavior:
```
$ curl -v https://api.adoptium.net/v3/binary/latest/21/ea/linux/x64/jdk/hotspot/normal/eclipse 2>&1 | grep Location
< Location: https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.1%2B12-ea-beta/OpenJDK21U-jdk_x64_linux_hotspot_ea_21-0-1-12.tar.gz
```
**Expected behavior**
Return a redirect to:
https://github.com/adoptium/temurin21-binaries/releases/download/jdk21u-2023-11-08-15-55-beta/OpenJDK21U-jdk_x64_linux_hotspot_2023-11-08-15-55.tar.gz
Contributor guide
Research direction
Start by reproducing the latest EA request with the documented curl endpoint and inspect the API code that selects and redirects to the latest build. Compare the returned release with the newer Temurin 21 EA release shown in the issue. Done means the endpoint redirects to the newest applicable EA build and the behavior is covered by an appropriate test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, kotlin
- Domain
- api
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100