Skip to content

Apollo: V2 Advisory included both RL8 and RL9 when only RL9 is requested #37

@wagner-robert

Description

@wagner-robert

All,
I am running the docs: https://apollo.build.resf.org/docs#/v2_compat/list_advisories_compat_v2_v2_advisories_get
with these options:

curl -X 'GET' \
  'https://apollo.build.resf.org/v2/advisories?filters.product=Rocky%20Linux%209&filters.cve=CVE-2025-21502&filters.type=TYPE_SECURITY&filters.fetchRelated=true&limit=100' \
  -H 'accept: application/json'

For this particular CVE, the output contains both el8 and el9

     "name": "RLSA-2024:8117",
      "synopsis": "Moderate: java-1.8.0-openjdk security update",
       "affectedProducts": [
        "Rocky Linux 8",
        "Rocky Linux 9"
      ],

      "publishedAt": "2024-10-25T17:16:21.716473Z",
      "rpms": {
        "Rocky Linux 8": {
          "nvras": [
            "java-1.8.0-openjdk-1:1.8.0.432.b06-2.el8.aarch64.rpm",
            "java-1.8.0-openjdk-1:1.8.0.432.b06-2.el8.src.rpm",
            "java-1.8.0-openjdk-1:1.8.0.432.b06-2.el8.x86_64.rpm",
...

We are trying to convert this to an OVAL file for use in OpenSCAP. If we are setting the product to Rocky Linux 9, should the output still include RL8 rpms? I am open for suggestions - Trying to fix some of this python code -https://github.com/rocky-linux/oval/tree/main
I don't know if this is an error with apollo or the python code. Does moving to V3 help?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions