foojayio / foojayio/discoapi

The bitness parameter is causing no results to be found for the /v3.0/packages api

Open
#147 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
154
Forks
17
PR merge metrics
No merged PRs in 30d

Description

Our builds started failing today (03/25/2026) because the maven-toolchains-plugin (https://github.com/linux-china/toolchains-maven-plugin) failed to find any results from the foojay api. I looked through the plugin code, and it is calling the foojay api like this:

`curl --location 'https://api.foojay.io/disco/v3.0/packages?distribution=corretto&version=25&operating_system=macos&architecture=x64&bitness=64&archive_type=pkg&libc_type=libc&latest=overall&package_type=jdk&discovery_scope_id=directly_downloadable&match=any&javafx_bundled=false&directly_downloadable=true&release_status=ga'`

and it gets a result like this:

`{
"result": [],
"message": "No package(s) found"
}`

If I remove the bitness flag from the url manually, the search works.

`curl --location 'https://api.foojay.io/disco/v3.0/packages?distribution=corretto&version=25&operating_system=macos&architecture=x64&archive_type=pkg&libc_type=libc&latest=overall&package_type=jdk&discovery_scope_id=directly_downloadable&match=any&javafx_bundled=false&directly_downloadable=true&release_status=ga'`

`{
"result": [
{
"id": "129c97e1e7a0b10b7ca0dd01b0be2995",
"archive_type": "pkg",
"distribution": "corretto",
"major_version": 25,
"java_version": "25.0.2",
"distribution_version": "25.0.2",
"jdk_version": 25,
"latest_build_available": true,
"release_status": "ga",
"term_of_support": "lts",
"operating_system": "macos",
"lib_c_type": "libc",
"architecture": "x64",
"fpu": "unknown",
"package_type": "jdk",
"javafx_bundled": false,
"directly_downloadable": true,
"filename": "amazon-corretto-25.0.2.10.1-macosx-x64.pkg",
"links": {
"pkg_info_uri": "https://api.foojay.io/disco/v3.0/ids/129c97e1e7a0b10b7ca0dd01b0be2995",
"pkg_download_redirect": "https://api.foojay.io/disco/v3.0/ids/129c97e1e7a0b10b7ca0dd01b0be2995/redirect"
},
"free_use_in_production": true,
"tck_tested": "yes",
"tck_cert_uri": "https://aws.amazon.com/de/blogs/opensource/amazon-corretto-no-cost-distribution-openjdk-long-term-support/",
"aqavit_certified": "unknown",
"aqavit_cert_uri": "",
"size": 221518516,
"feature": []
}
],
"message": "1 package(s) found"
}`

bitness does not appear to even be in the data anymore. Would it be possible to have the api ignore the bitness query parameter instead of returning 0 results?

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.