Project

General

Profile

Bug #497

Error when deleting heartbeats

Added by Antoine LUONG over 7 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Start date:
06/06/2012
Due date:
% Done:

0%

Resolution:

Description

When the user tries to list all heartbeats of a specific agent and to delete them all, the following error occurs:

Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/prewikkapro/Core.py", line 403, in process
    getattr(view_object, view["handler"])()
  File "/usr/lib/python2.6/site-packages/prewikkapro/views/heartbeatlisting.py", line 144, in render
    self.dataset["analyzer"] = self.env.idmef_db.getAnalyzer(self.parameters["analyzerid"])
  File "/usr/lib/python2.6/site-packages/prewikkapro/IDMEFDatabase.py", line 524, in getAnalyzer
    ident = self.getLastHeartbeatIdent(analyzerid)
  File "/usr/lib/python2.6/site-packages/prewikkapro/IDMEFDatabase.py", line 423, in getLastHeartbeatIdent
    return self._getLastMessageIdent("heartbeat", self.getHeartbeatIdents, analyzer)
  File "/usr/lib/python2.6/site-packages/prewikkapro/IDMEFDatabase.py", line 417, in _getLastMessageIdent
    return idents[0]
IndexError: list index out of range

History

#1 Updated by Jean-Charles ROGEZ about 6 years ago

  • Target version changed from 113 to 122

#2 Updated by Thomas ANDREJAK almost 4 years ago

  • Target version changed from 122 to Prelude OSS 3.0.0

#3 Updated by Antoine LUONG over 3 years ago

  • Status changed from New to Resolved
  • Assignee set to Antoine LUONG

The bug does not appear anymore since it was specific to the Sensor(Alert|Heartbeat)Listing view.

#4 Updated by Antoine LUONG about 3 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF