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

cassandane.ini: don't choke on repeated params #4199

Merged
merged 4 commits into from Aug 14, 2022

Conversation

elliefm
Copy link
Contributor

@elliefm elliefm commented Aug 12, 2022

Fixes a bug where if a parameter in the [config] section of cassandane.ini was specified more than once, Cassandane would produce junk imapd.conf files, and then all tests would error out due to master aborting.

Now, if a parameter is specified multiple times, the last value read takes precedence, and a warning is logged saying so. In verbose mode, all values for the offending item are logged.

In practice, this change only affects the [config] section; all other cassandane.ini parameters are read individually, and will continue doing whatever they already did.

This used to be required for Cassandane to run properly, but
hasn't been required for a while.
Fixes a bug where if a param in the [config] section was specified
more than once, we'd produce junk imapd.conf files, and then all
tests would error out due to master aborting.
@elliefm elliefm added backport-to-3.6 for PRs that are to be backported to 3.6 backport-to-3.4 for PRs that are to be backported to 3.4 backport-to-3.2 for PRs that are to be backported to 3.2 labels Aug 12, 2022
@elliefm elliefm self-assigned this Aug 12, 2022
@elliefm elliefm requested a review from rjbs August 12, 2022 00:26
Copy link
Contributor

@ksmurchison ksmurchison left a comment

Choose a reason for hiding this comment

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

LGTM

@elliefm elliefm merged commit dea78bb into cyrusimap:master Aug 14, 2022
@elliefm elliefm deleted the v37/cassini-multival-bug branch August 14, 2022 23:47
@elliefm elliefm removed the backport-to-3.6 for PRs that are to be backported to 3.6 label Oct 5, 2022
@elliefm elliefm removed backport-to-3.4 for PRs that are to be backported to 3.4 backport-to-3.2 for PRs that are to be backported to 3.2 labels Jan 13, 2023
@elliefm elliefm removed their assignment Jan 15, 2023
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