https://bugs.openldap.org/show_bug.cgi?id=9358
--- Comment #4 from subbarao@computer.org subbarao@computer.org --- (In reply to subbarao@computer.org from comment #3)
Comment to help others searching ITS. Before this fix, certain range searches with reqStart on the changelog were broken. For example:
(!(reqStart<=20220707123456.000000Z))
The idea here is to grab all entries strictly greater than the timestamp. But when slapd truncates zeros, it rewrites this filter to:
(!(reqStart<=20220707123456Z))
As a result, the reqStart=20220707123456.000000Z entry is the first match since it is greater than 20220707123456Z, which is not the desired behavior.
Actually, it turns out that this trailing zero truncation is still happening in 2.5.12. I'll open a separate ITS report for that. I first saw this problem with 2.4.57, searched around, found this issue and figured that surely this must be the fix. But it turns out that 2.4.57 already has this patch, and the problem is still there on 2.5.12.