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

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

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
68/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Quiet
Tech stack
java
Domain
api

Research direction

Start by reproducing the v3.0/packages request with and without bitness, then trace the endpoint's query-parameter handling in the discoapi code. Done means requests containing bitness no longer incorrectly return zero results when matching packages exist, while the existing package response remains available.

Written by the indexing model from the issue text.

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?

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.