fail2ban doesn't handle leap years
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
fail2ban (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: fail2ban
Today is the 29th of February. restartd tells me fail2ban is failing to start. The log says:
2008-02-29 16:10:00,988 ERROR: Fail2Ban got an unhandled exception and died.
2008-02-29 16:10:00,989 ERROR: Type: 'ValueError'
Value: ('day is out of range for month',)
TB: [('/usr/
and isn't actually starting the process.
This is in dapper, and not something I think will come up a whole lot, but perhaps should be fixed upstream if it isn't already as it does have some security implications.
Changed in fail2ban: | |
status: | New → Confirmed |
see bugs.debian. org/cgi- bin/bugreport. cgi?bug= 468382
http://
apply patch provided and please verify that it works after...
On Fri, 29 Feb 2008, Eythian wrote:
> Public bug reported:
> Binary package hint: fail2ban
> Today is the 29th of February. restartd tells me fail2ban is failing to
> start. The log says:
> 2008-02-29 16:10:00,988 ERROR: Fail2Ban got an unhandled exception and died. bin/fail2ban' , 47, '?', 'fail2ban.main()'), ('/usr/ share/fail2ban/ fail2ban. py', 519, 'main', 'e = element[ 1].getFailures( )'), ('/usr/ share/fail2ban/ logreader/ logreader. py', 143, 'getFailures', 'for element in self.findFailur e(line) :'), ('/usr/ share/fail2ban/ logreader/ logreader. py', 174, 'findFailure', 'date = self.getUnixTim e(timeMatch. group() )'), ('/usr/ share/fail2ban/ logreader/ logreader. py', 213, 'getUnixTime', 'date = list(time. strptime( value, self.timepatter n))'), ('/usr/ lib/python2. 4/_strptime. py', 425, 'strptime', 'julian = datetime_date(year, month, day).toordinal() - \\')]
> 2008-02-29 16:10:00,989 ERROR: Type: 'ValueError'
> Value: ('day is out of range for month',)
> TB: [('/usr/
> and isn't actually starting the process.
> This is in dapper, and not something I think will come up a whole lot,
> but perhaps should be fixed upstream if it isn't already as it does have
> some security implications.
> ** Affects: fail2ban (Ubuntu) www.linkedin. com/in/ yarik
> Importance: Undecided
> Status: New
--
Yaroslav Halchenko
Research Assistant, Psychology Department, Rutgers-Newark
Student Ph.D. @ CS Dept. NJIT
Office: (973) 353-5440x263 | FWD: 82823 | Fax: (973) 353-1171
101 Warren Str, Smith Hall, Rm 4-105, Newark NJ 07102
WWW: http://