Adding multiple new DataFileTypes to a platform or variant only saves the first one added
This happens in the Illumina installation plug-ins (see http://baseplugins.thep.lu.se/wiki/net.sf.basedb.illumina).
When adding the BGX file type and 1-2 scandata file types to the new platform only the first file type (bgx) is added to the platform. All file types are created in the database. Running the installation program a second time creates the missing links.
The problem seems to be in the FileTypeIndex class in the BASE core which has a faulty equals() method. It only works for items that are saved in the database. For unsaved items, all items match all other unsaved items.