Project

General

Profile

Bug #104

Prewikka does not sanitze 'Step' filter for `Alerts' view.

Added by over 13 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Low
Target version:
Start date:
Due date:
% Done:

0%

Resolution:
fixed

Description

Prewikka fails to properly sanitze the 'Step' setting for the 'Alerts' view. Set to @40' and @Years' to reproduce.

The error message in detail is:

mktime argument out of range

Traceback (most recent call last):
  File "/usr/lib/python2.3/site-packages/prewikka/Core.py", line 277, in process
    getattr(view[[object"] view["handler]])()
  File "/usr/lib/python2.3/site-packages/prewikka/views/messagelisting.py", line 1017, in render
    start, end = self._getTimelineRange()
  File "/usr/lib/python2.3/site-packages/prewikka/views/messagelisting.py", line 525, in _getTimelineRange
    start = end[self.parameters[[timeline_unit"]] - selfparameters["timeline_value]]
  File "/usr/lib/python2.3/site-packages/prewikka/views/messagelisting.py", line 76, in +sub+
    return self + (-value)
  File "/usr/lib/python2.3/site-packages/prewikka/views/messagelisting.py", line 72, in +add+
    t = time.mktime(t)
[[OverflowError]]: mktime argument out of range

prewikka-mktime.diff View (949 Bytes) Yoann VANDOORSELAERE, 11/17/2005 12:04 PM

prewikka-mktime-2.diff View (960 Bytes) Yoann VANDOORSELAERE, 11/18/2005 04:41 PM

History

#1 Updated by Yoann VANDOORSELAERE over 13 years ago

  • Status changed from New to Assigned

Could you please try the attached patch ?

#2 Updated by over 13 years ago

That patch didn't solve the issue:

mktime argument out of range

Traceback (most recent call last):
  File "/usr/lib/python2.3/site-packages/prewikka/Core.py", line 277, in process
    getattr(view[[object"] view["handler]])()
  File "/usr/lib/python2.3/site-packages/prewikka/views/messagelisting.py", line 1070, in render
    start, end = self._getTimelineRange()
  File "/usr/lib/python2.3/site-packages/prewikka/views/messagelisting.py", line 577, in _getTimelineRange
    start = end[self.parameters[[timeline_unit"]] - selfparameters["timeline_value]]
  File "/usr/lib/python2.3/site-packages/prewikka/views/messagelisting.py", line 92, in +sub+
    return self + (-value)
  File "/usr/lib/python2.3/site-packages/prewikka/views/messagelisting.py", line 84, in +add+
    t = time.mktime([1970, 0, 0, 0, 0, 0, 0, 0, 0])
[[OverflowError]]: mktime argument out of range

#3 Updated by Yoann VANDOORSELAERE over 13 years ago

Please try the attached newer version

#4 Updated by Yoann VANDOORSELAERE over 13 years ago

  • Status changed from Assigned to Closed
  • Resolution set to fixed

Finally fixed in r7420. Please re-open if any problem of this sort occur again.

#5 Updated by Yoann VANDOORSELAERE almost 10 years ago

  • Project changed from PRELUDE SIEM to Prewikka
  • Category deleted (5)
  • Target version deleted (0.9.1)

Also available in: Atom PDF