Skip to content

Skip deallocated and withdrawn XSAs in the Xen importer - #2549

Open
Jean-Regis-M wants to merge 1 commit into
aboutcode-org:mainfrom
Jean-Regis-M:fix/xen-skip-deallocated-withdrawn
Open

Jean-Regis-M wants to merge 1 commit into
aboutcode-org:mainfrom
Jean-Regis-M:fix/xen-skip-deallocated-withdrawn

Conversation

@Jean-Regis-M

@Jean-Regis-M Jean-Regis-M commented Nov 28, 2026 •

Copy link
Copy Markdown

Fixes #2548

xsa.json lists deallocated XSA numbers (an id and a date) and withdrawn advisories next to the real ones. The importer now skips them and leaves them out of advisories_count.

Full import (python manage.py import xen_importer_v2 into an empty, migrated PostgreSQL database, live feed of 531 entries):

stored advisories empty summary and no aliases
main 531 10
this branch 520 0

XSA-283 ("Withdrawn Xen Security Advisory number") is gone as well. XSA-161 still has "WITHDRAWN:" in its title, but the feed doesn't flag it as withdrawn, so I left it.

  • new test with a deallocated, a withdrawn and a normal entry; it fails on main and passes here
  • vulnerabilities/tests/pipelines/v2_importers: 202 passed, 8 failed on Windows. main gives 201 passed with the same 8 failing names
  • black and isort are clean

xsa.json lists deallocated numbers (an id and a date) and withdrawn advisories next to the real ones. They were imported as advisories with an empty summary and no aliases.

Fixes aboutcode-org#2548

Signed-off-by: JEAN REGIS <190766850+Jean-Regis-M@users.noreply.github.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

xen importer stores 10 deallocated and 1 withdrawn XSA as empty advisories

1 participant