Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-126765

Don't directly modify report messages when generating JSON report file

Linking RHIVOS CVEs to...Migration: Automation ...RHELPRIO AssignedTeam ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • rhel-9.6
    • leapp
    • None
    • None
    • rhel-upgrades
    • 1
    • False
    • True
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      In leapp framework, generating `.json` report file modifies the passed in report messages, which affects subsequent report file generation, e.g. `.txt` report generation.

      The function responsible for generation:
      https://github.com/oamg/leapp-repository/blob/4fc0d0b225182bb0ad819de3d22cf16f4bf81a4a/commands/upgrade/util.py#L138

      Possible solution:
      Use deep copies instead of shallow ones.

              Unassigned Unassigned
              rh-ee-mmatuska Matej Matuska
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: