Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix parsing of offline transaction JSON file #1807

Merged
merged 1 commit into from
Oct 30, 2024
Merged

Conversation

m-blaha
Copy link
Member

@m-blaha m-blaha commented Oct 30, 2024

Initialize the action, nevra, reason, repo_id, group_id, and package_path
fields to empty strings for each package, when parsing transaction JSON
file. Without this initialization, these fields may retain values
from the previous loop iteration, leading to an incorrect transaction.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2322527

@ppisar
Copy link
Contributor

ppisar commented Oct 30, 2024

Isn't the same bug few lines above when parsing "groups" and when parsing "environments"?

@m-blaha
Copy link
Member Author

m-blaha commented Oct 30, 2024

Oh, good catch. I'll add it to the fix.

Initialize the action, nevra, reason, repo_id, group_id, and package_path
fields to empty strings for each package, when parsing transaction JSON
file. Without this initialization, these fields may retain values
from the previous loop iteration, leading to an incorrect transaction.

Similar issue is fixed also for groups and environments parsing.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2322527
@m-blaha m-blaha force-pushed the mblaha/offline-parsing branch from 732ac10 to 65f9c2c Compare October 30, 2024 11:50
@ppisar ppisar self-assigned this Oct 30, 2024
Copy link
Contributor

@ppisar ppisar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good.

@ppisar ppisar added this pull request to the merge queue Oct 30, 2024
Merged via the queue into main with commit 01d4df8 Oct 30, 2024
20 checks passed
@ppisar ppisar deleted the mblaha/offline-parsing branch October 30, 2024 12:48
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.

2 participants