Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

`latest` API parameter does not seem to work as expected

Open
#95 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
42/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
java
Domain
api, backend

Research direction

Start with the documented packages endpoint and reproduce the linked Semeru JDK 11 request using latest=available. Compare the response with the reported expectations: exclude packages whose latest_build_available is false and determine whether the certified distribution should be named semeru_certified; done means the API behavior and naming match the documented contract.

Written by the indexing model from the issue text.

Description

This might be user error.

I want to download (say) the latest version of Semeru JDK 11, for Linux/x64.

The documentation says I should use latest=available, but if I do that I get the following response:

{
  "result": [
    {
      "id": "e001e5341739cb1a86454e2bf4758eb2",
      "archive_type": "tar.gz",
      "distribution": "semeru",
      "major_version": 11,
      "java_version": "11.0.22",
      "distribution_version": "11.0.22",
      "jdk_version": 11,
      "latest_build_available": true,
      "release_status": "ga",
      "term_of_support": "lts",
      "operating_system": "linux",
      "lib_c_type": "glibc",
      "architecture": "x64",
      "fpu": "unknown",
      "package_type": "jdk",
      "javafx_bundled": false,
      "directly_downloadable": true,
      "filename": "ibm-semeru-open-jdk_x64_linux_11.0.22_7_openj9-0.43.0.tar.gz",
      "links": {
        "pkg_info_uri": "https://api.foojay.io/disco/v3.0/ids/e001e5341739cb1a86454e2bf4758eb2",
        "pkg_download_redirect": "https://api.foojay.io/disco/v3.0/ids/e001e5341739cb1a86454e2bf4758eb2/redirect"
      },
      "free_use_in_production": true,
      "tck_tested": "unknown",
      "tck_cert_uri": "",
      "aqavit_certified": "unknown",
      "aqavit_cert_uri": "",
      "size": 205750292,
      "feature": []
    },
    {
      "id": "81408b9d636baab491c46b2948299907",
      "archive_type": "tar.gz",
      "distribution": "semeru",
      "major_version": 11,
      "java_version": "11.0.22",
      "distribution_version": "11.0.22",
      "jdk_version": 11,
      "latest_build_available": false,
      "release_status": "ga",
      "term_of_support": "lts",
      "operating_system": "linux",
      "lib_c_type": "glibc",
      "architecture": "x64",
      "fpu": "unknown",
      "package_type": "jdk",
      "javafx_bundled": false,
      "directly_downloadable": true,
      "filename": "ibm-semeru-certified-jdk_x64_linux_11.0.22.0.tar.gz",
      "links": {
        "pkg_info_uri": "https://api.foojay.io/disco/v3.0/ids/81408b9d636baab491c46b2948299907",
        "pkg_download_redirect": "https://api.foojay.io/disco/v3.0/ids/81408b9d636baab491c46b2948299907/redirect"
      },
      "free_use_in_production": true,
      "tck_tested": "no",
      "tck_cert_uri": "",
      "aqavit_certified": "yes",
      "aqavit_cert_uri": "https://github.com/ibmruntimes/semeru11-certified-binaries/releases/download/jdk-11.0.22%2B7_openj9-0.43.0/ibm-semeru-certified-jdk_x64_linux_11.0.22.0.tap.zip",
      "size": 219470559,
      "feature": []
    }
  ],
  "message": "2 package(s) found"
}

It's returned:

  • ibm-semeru-open-jdk_x64_linux_11.0.22_7_openj9-0.43.0.tar.gz with latest_build_available=true
  • ibm-semeru-certified-jdk_x64_linux_11.0.22.0.tar.gz with latest_build_available=false

I think that:

  • latest=available should have filtered out any latest_build_available=false
  • a semeru-certified JDK should have a distribution of semeru_certified
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.