DataSoft/Nova — Issue #73: Potential FeatureSet time deserialization issue
Author: PherricOxide
Created: 2012-03-09 01:03:01+00:00
State: open
Labels: Component:Lib, Type:Bug

I was experimenting with Unit Tests and made one which serializes/deserializes a FetaureSet and compares the objects to see if they contain the same values. I found the following variables are lost during a serialization/deserialization of a FeatureSet,
m_startTime
m_endTime
m_last_time

These are used to computer the m_totalInterval variable when CalculateInterval is called. The GUI just uses deserialized FeaturSets for display, it doesn't recalculate it, so there's no problem there. However, when suspects are saved to the CE state file, it is done by calling the serialization and deserialization methods. I haven't actually seen a bug, but this could potentially cause problems in classification after the CE state file is loaded or during silent alarms. I haven't tested it, but I believe when a suspect is deserialized from the save file and a new packet arrives, the time interval will be reset to only include new packet data and not the old times.