Skip to content

mattermost importer stores 21 advisories with no affected package (fix_versions is now a JSON string) #2551

Backlog

Description

@Jean-Regis-M

The Mattermost feed now gives fix_versions in two shapes. Older entries are a list. 21 newer ones are the same list written as a string:

"issue_id": "MMSA-2026-00722",
"fix_versions": "[\"12.0\",\"11.11.1\",\"11.7.12\",\"11.10.3\"]"

mattermost_importer_v2 treats the whole string as one version. univers rejects it, the importer logs it, and the advisory is stored without any affected package:

Error processing fixed versions '['["12.0","11.11.1"]']' ... is not a valid <class 'univers.versions.SemverVersion'>

(that log line is from a test with a two-version string)

Full manage.py import mattermost_importer_v2 into an empty PostgreSQL, 30 Nov:

stored with packages without
main (9a9c9b3) 610 584 26
with a fix 610 605 5

The 21 recovered advisories are exactly the string-shaped ones (62 fixed versions). They are desktop, mobile and plugin entries, the earliest dated 2026-05-15.

Fix: decode the string when it starts with [. I have a patch with a test and will open a PR.

One related oddity I did not change: MMSA-2026-00794 lists "2.47 Mobile.0", which is stored as a version 2.47.0-Mobile.0. That looks like a typo in the feed.

Activity

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

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