Uploaded image for project: 'Security Advisory Application'
  1. Security Advisory Application
  2. SPAPP-45

Security entries imported before 2.3.0 never get an assignee

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.3.1
    • 2.3.0
    • None
    • Unit
    • Unknown
    • N/A

    Description

      Problem

      Security entries imported from GitHub before 2.3.0 that were not updated on GitHub since the upgrade have no assignee, and they cannot get one: they are missing the external users (the GitHub users involved in the advisory) that the assignee is resolved from.

      Example: an entry last imported on 2026-10-20 (before the 2.3.0 upgrade of 2026-11-04), has no SecurityAdvisoryApplication.Code.ExternalUserClass object and no assignee.

      Cause

      • The external users and the assignee are only written when an advisory is imported.
      • The scheduled import only fetches the advisories updated on GitHub since its previous run, so an advisory unchanged on GitHub since the upgrade is never re-imported.
      • The upgrade to 2.3.0 does not backfill the existing entries, so these entries:
        • are not listed among the advisories without assignee,
        • do not contribute their GitHub users to the "GitHub users mapping" administration,
        • are not assigned by the assignee resolution job when a GitHub user gets mapped.

      Expected

      The upgrade migration should make sure that every entry having an advisory URL gets its assignee metadata: its external users, fetched from the advisory, and the assignee resolved from their mapping when the entry has none yet. It must not change any other data of the entry (title, content, state, CVSS, impacted packages, …), nor an assignee that is already set.

      Workaround

      Re-import each affected advisory, e.g. with $services.securityadvisory.importAndSaveAdvisory('<advisory URL>'); note that this also overwrites the other imported data of the entry.

      Attachments

        Issue Links

          Activity

            People

              surli Simon Urli
              surli Simon Urli
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: