Closed Bug 325361 Opened 19 years ago Closed 19 years ago

When an event is scheduled at midnight of a given day of the month, one email is sent *each* hour of that day

Categories

(Bugzilla :: Whining, defect)

2.20
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 2.20

People

(Reporter: LpSolit, Assigned: LpSolit)

Details

(Keywords: regression)

Attachments

(1 file)

The problem is that editwhines.cgi get the time of the day as, see line 224: my $time = $cgi->param("time_$sid") || ''; And so an empty string is added into the whine_schedules table if the event is scheduled at midnight, because $cgi->param("time_$sid") = 0. And so 0 is converted to ''. From what I see, this is a regression from bug 298510. But whine.pl does this check at line 573: if (($run_today) && ($run_time !~ /^\d+$/)) { # The default of 60 catches any bad value my $minute_interval = 60; As $run_time is "" instead of 0, an time interval of 60 minutes is set, meaning that an email will be sent *each* hour, instead of once per month. I just have bitten by this on landfill (already 13 emails today :( ).
Flags: blocking2.22?
Flags: blocking2.20.2?
Attached patch patch, v1Splinter Review
The patch applies on both 2.20 and tip.
Assignee: erik → LpSolit
Status: NEW → ASSIGNED
Attachment #210264 - Flags: review?(wicked)
Flags: blocking2.20.1?
Attachment #210264 - Flags: review?(wicked) → review+
Flags: approval?
Flags: approval2.20?
Flags: approval?
Flags: approval2.20?
Flags: approval2.20+
Flags: approval+
tip: Checking in editwhines.cgi; /cvsroot/mozilla/webtools/bugzilla/editwhines.cgi,v <-- editwhines.cgi new revision: 1.13; previous revision: 1.12 done Checking in whine.pl; /cvsroot/mozilla/webtools/bugzilla/whine.pl,v <-- whine.pl new revision: 1.21; previous revision: 1.20 done 2.20: Checking in editwhines.cgi; /cvsroot/mozilla/webtools/bugzilla/editwhines.cgi,v <-- editwhines.cgi new revision: 1.8.2.2; previous revision: 1.8.2.1 done Checking in whine.pl; /cvsroot/mozilla/webtools/bugzilla/whine.pl,v <-- whine.pl new revision: 1.13.2.4; previous revision: 1.13.2.3 done
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Flags: blocking2.22?
Flags: blocking2.20.2?
Flags: blocking2.20.1?
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: