[2.0] Adding OEM step incorrectly shows dialog that multiple TS exist with this name


When adding a new OEM step to a task sequence, it looks up the task sequence by using the name. To avoid language translation issues, the task sequence name is compared to the beginning of the task sequence name as displayed in the task sequence editor (using a StartsWith comparison). If you have multiple task sequences that start with the same word or phrase and then add more to the end of the name, the code would see that two or more task sequence could match the "StartsWith" condition. This results in displaying a dialog to the user of "Found multiple task sequences with the same name as this task sequence", which is actually incorrect. The code needs to be modified to adjust this logic to accept the task sequence that matches the greatest number of characters in the name.
To reproduce this issue:
  1. Create a custom task sequence named "Blank TS"
  2. Right-click the new task sequence and select "Duplicate"
  3. A new task sequence named "Blank TS-XXX00000" is created (where XXX00000 is the task ID number / package number)
  4. Edit the TS created in step 3.
  5. Add an OEM step. The dialog is displayed.
    This logic issue may also cause the incorrect task sequence to be selected and modified by the underlying code, if you opened the TS with the longer name and both task sequences were otherwise identical.
Closed Dec 17, 2009 at 10:54 PM by rhearn


rhearn wrote Aug 27, 2009 at 6:38 PM

Added to SCIF 2.0 planned changes.

wrote Aug 27, 2009 at 6:40 PM

wrote Dec 17, 2009 at 10:54 PM

Resolved with changeset 41449.

wrote Feb 13, 2013 at 10:45 PM

wrote May 16, 2013 at 5:21 AM