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
CRL scheduler adds extra CRL generation at midnight for daily schedules #1142
Comments
Comment from awnuk (@awnuk) at 2013-10-01 21:35:46 Related to |
Comment from mharmsen (@mharmsen) at 2014-09-26 00:59:48 proposed Milestone: 10.2.3 - Per Dogtag 10.2.3 meeting of 09/25/2014 |
Comment from mharmsen (@mharmsen) at 2015-01-15 00:56:51 Per Dogtag 10.2.X meeting of 01/14/2015: Milestone 10.2.2 |
Comment from mharmsen (@mharmsen) at 2015-02-24 23:32:36 Per 10.2.2 Triage meeting of 02/24/2015: 10.2.3 |
Comment from jmagne (@jmagne) at 2015-05-05 22:51:26 Have duplicated the problem pretty easily. It comes down to when we have a one day schedule of a set of update times. Say there are two entries, those updates happen normally. The next thing the system does is attempt to calculate the next update time. In this case it should be the first entry of the schedule plus one day of time. What is actually happening is the system calculates this next update time to be precisely 12:00 AM, the next day, and does not account for the schedule. After the bogus update happens at midnight, the rest of the schedule appears to operate normally. I have found the area in the code causing this and am testing an experimental fix. Results of tests and patch to come. |
Comment from jmagne (@jmagne) at 2015-05-05 23:19:37 How to duplicate and test:
[CRLIssuingPoint-MasterCRL]: findNextUpdate: Wed May 06 15:10:00 PDT 2015 delay: 86301873
[CRLIssuingPoint-MasterCRL]: findNextUpdate: Wed May 06 15:03 PDT 2015 delay: 86301873 That is the correct behavior after the fix. We want the next update to be at the first entry of the daily schedule , but tomorrow. The current bug would print out this value as something like: Wed May 06 00:00:00 or similar to indicate midnight. This is not what we want. Very simple patch for this:
@@ -1653,7 +1653,7 @@ public class CRLIssuingPoint implements ICRLIssuingPoint, Runnable {
The "mDailyUpdates.size()" indicates how many days the schedule accounts for. The basic case, and the one showing the bug is when the schedule takes place strictly during one day. When this occured the calculated next update did not take into account the first member of the schedule tomorrow, and simply spit out "tomorrow" or midnight. |
Comment from jmagne (@jmagne) at 2015-05-07 02:08:50 Patch checked in with fix, closing. |
Comment from nkinder (@nkinder) at 2017-02-27 14:08:05 Metadata Update from @nkinder:
|
This issue was migrated from Pagure Issue #572. Originally filed by nkinder (@nkinder) on 2013-03-26 04:49:04:
CRL scheduler adds extra CRL generation at midnight for daily schedules.
For example if
ca.crl.MasterCRL.dailyUpdates=17:44,17:46
CRL should be generated at 17:44 and 17:46 today and every day after.
Instead CRLs are generated at 17:44, 17:46, and midnight.
The text was updated successfully, but these errors were encountered: