When configuring nsslapd-changelogmaxage as a single non numeric character (e.g. "-") you end up with a changelog that is completely purged with the next run of the purge thread.
The problem is only logged for log level PLUGIN.
According to the principle of least astonishment a config error like that should be handled more user friendly.
As a fix:
in age_str2time(): return 0 if unit cannot be parsed and log the error message as FATAL, so you will at least have a default changelogmaxage and may notice the error message.
0001-Fix-for-ticket-47972 - make-parsing-of-nsslapd-changelogmaxage-more-fault-t.patch
no clone, can be covered by upstream test
git patch file (master) -- applying the same fix made on the MMR plug-in to the retrocl plug-in, as well
The patch 0001-Fix-for-ticket-47972 - make-parsing-of-nsslapd-changelogmaxage-more-fault-t.patch looks good to me.
Jochen Schneider, thank you for providing a patch.
The patch was reviewed by Mark and myself.
Pushed to master:
1d18dd0..578f946 master -> master
Metadata Update from @nhosoi:
- Issue assigned to nhosoi
- Issue set to the milestone: 188.8.131.52
389-ds-base is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in 389-ds-base's github repository.
This issue has been cloned to Github and is available here:
If you want to receive further updates on the issue, please navigate to the github issue
and click on subscribe button.
Thank you for understanding. We apologize for all inconvenience.
Metadata Update from @spichugi:
- Issue close_status updated to: wontfix (was: Fixed)
to comment on this ticket.