If the tableformat includes the entire column 'extra', this code falsly creates an ExtraColumn with rest = '', but instead should treat it like a normal IntelMQColumn:
|
if isinstance(col, tuple): |
|
intelmq_field, column_title = col |
|
first_component, sep, rest = intelmq_field.partition(".") |
|
if first_component == "extra": |
|
return ExtraColumn(column_title, rest) |
|
else: |
|
return IntelMQColumn(column_title, intelmq_field) |
As a result, if a user has this column specification:
mailgen actually accesses extra. (or written differently: extra[''] and the result in the attachment is an empty string.
The workaround is this column specification:
IntelMQColumn("extra", "extra"),
If the tableformat includes the entire column 'extra', this code falsly creates an
ExtraColumnwithrest = '', but instead should treat it like a normalIntelMQColumn:intelmq-mailgen/intelmqmail/tableformat.py
Lines 179 to 185 in 3749425
As a result, if a user has this column specification:
mailgen actually accesses
extra.(or written differently:extra['']and the result in the attachment is an empty string.The workaround is this column specification: