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

[system-upgrade] Fix issues with corrupt/missing statefile (RhBug:1649745) #141

Merged
merged 2 commits into from Nov 26, 2018

Conversation

pkratoch
Copy link
Contributor

When the statefile doesn't exist yet, and system-upgrade upgrade is being run,
it fails with "ValueError: invalid null reference in method 'new_VectorString'".
This fixes the issue.
@m-blaha
Copy link
Member

m-blaha commented Nov 19, 2018

@kratochvilova I think DNF should log a warning in case of corrupted statefile. Especially in the "reboot" or "upgrade" phase.

…9745)

https://bugzilla.redhat.com/show_bug.cgi?id=1649745
If the statefile is corrupted, it is treated similarly as if it doesn't exist.

Note about the ValueError: JSONDecodeError is a subclass of ValueError in
python3, and in python2 there is only ValueError.
@m-blaha m-blaha merged commit 8fa23e6 into rpm-software-management:master Nov 26, 2018
@pkratoch pkratoch deleted the bz1649745 branch December 4, 2018 08:06
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.

None yet

2 participants