Opened 10 years ago

Closed 10 years ago

#918 closed defect (fixed)

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

Reported by: nicklas Owned by: nicklas
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 Changed 10 years ago by nicklas

  • Owner changed from everyone to nicklas
  • Status changed from new to assigned

comment:2 Changed 10 years ago by nicklas

  • Resolution set to fixed
  • Status changed from assigned to closed

(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.