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
[WIP] Fix Modoboa crashes when Postfix maps become modified #1654
base: master
Are you sure you want to change the base?
Conversation
Example of a generated broken checksum file:
|
Hmm… the contents of |
if not self.__check_file(fullpath): | ||
print( | ||
"Cannot upgrade '{}' map because it has been modified." | ||
.format(mapobject.filename)) | ||
return self.__checksums[mapobject.filename] | ||
return self.__checksums[mapobject.filename["checksum"]] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure about this line?
Do you have an example? |
Description of the issue/feature this PR addresses:
Modoboa's Postfix map file generator will generate a broken
modoboa-postfix-maps.chk
file if it fails to validate the existing map files due to user changes. On next start (ie: the second start after a user map file change!) modoboa will then crash inexplicably.Explanation of each commit:
As can be seen from the commit dates these commits are rather old – it's been a while since I encountered this issue last.
Current behavior before PR:
Desired behavior after PR is merged:
Modoboa should only log message: Cannot upgrade '…' map because it has been modified.