Opened 17 years ago

Closed 17 years ago

#918 closed defect (fixed)

Adding multiple new DataFileTypes to a platform or variant only saves the first one added

Reported by: Nicklas Nordborg Owned by: Nicklas Nordborg
Priority: critical Milestone: BASE 2.6
Component: core Version:
Keywords: Cc:

Description

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.

Change History (2)

comment:1 by Nicklas Nordborg, 17 years ago

Owner: changed from everyone to Nicklas Nordborg
Status: newassigned

comment:2 by Nicklas Nordborg, 17 years ago

Resolution: fixed
Status: assignedclosed

(In [4125]) Fixes #918: Adding multiple new DataFileTypes to a platform or variant only saves the first one added

Note: See TracTickets for help on using tickets.