RedHat 11 JDK redirects to a JRE

Open
#97 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
java
Domain
api

Research direction

Start by rerunning the documented discoapi query and comparing the redirect target with the downloaded filename. Check whether the incorrect JDK-to-JRE mapping is controlled by discoapi or by the Red Hat content gateway, using the reported Red Hat ticket as context. Done means the endpoint returns a JDK artifact or clearly records the upstream dependency and resolution.

Written by the indexing model from the issue text.

Description

If you query the API for the latest Red Hat JDK11 for Linux, you get this link:

https://api.foojay.io/disco/v3.0/ids/0836347ef08afff39c8de1a92eee8de7/redirect

Which resolves to:

https://developers.redhat.com/content-gateway/file/pub/openjdk/adoptium/January_2024/java-11-openjdk-11.0.22.0.7-1.portable.jdk.el.x86_64.tar.xz

However, when you actually download the file, it's actually:

java-11-openjdk-11.0.22.0.7-1.portable.jre.x86_64.tar.xz

This seems to be an upstream issue with RedHat, but I can't find anywhere specific the https://developers.redhat.com/content-gateway/file/pub/openjdk/adoptium link is publicized to report it specifically - I've reported it via the generic Report a website issue (ticket 592453) but not convinced that will get to the right place.

Dominant language
Java
Stars
154
Forks
18
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from foojayio/discoapi

All issues in foojayio/discoapi

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.