Type clashing problem when records with default values are used in sets.

Description

topic/johanna/sft-port is a branch that contains a slight modification to the sftp log-rotator, adding the possibility to select the server port with a default value of 20.

After adding this small change, the Bro type system is no longer able to figure out that it can coerce the record in cases that previously worked. The default evocation of the sftp log-rotator using:

or similar leads to

Directly specifying the type of the record works, but would break all other scripts that are using the sftp log rotator currently.

Working example:

Once this is fixed, topic/johanna/sft-port can be merged.

Environment

None

Assignee

Johanna Amann

Reporter

Johanna Amann

Labels

External issue ID

None

Components

Fix versions

Affects versions

Priority

Normal
Configure