MantisBT - TestLink
View Issue Details
0003606TestLinkInternal issuepublic2010-07-15 08:332010-10-09 08:00
makato2003 
Eloff 
normalminoralways
closedfixed 
Intel Core 2Windows XPPro 2002 SP3
1.8.5 (bug fixing) 
1.9 Beta 6 
Firefox 3.6.6
0003606: import test results (XML) with external_id fails
Failed to import test results using an XML file with external_id's.
Allthough the external_id appears to be correct textually, the import fails because the corresponding internal id cannot be determined.
Project has prefix "abc-", Testlink then adds glue character '-', which results in "abc--'.

To import test results, use the external_id (e.g. abc--20). The import fails.
testcase.class.php::getInternalID() is unable to resolve the internal id.
It appears the function locates the first glue-character in the given external_id and then tries to locate internal id '-20', which obviously is wrong.
Problem can be solved in different manners:
* do not allow glue characters to appear in the prefix. Least elegant.
* allow glue character, but change getInternalID such that in locates the actual glue character in a find_last_of manner.



The latter has our preference as this notation can be very useful:
bigsystem-subsystemA-partA2
bigsystem-subsystemB-partB3
No tags attached.
Issue History
2010-07-15 08:33makato2003New Issue
2010-07-15 10:12fmanAssigned To => fman
2010-07-15 10:12fmanStatusnew => assigned
2010-07-16 18:28fmanNote Added: 0010677
2010-07-16 18:28fmanAssigned Tofman => Eloff
2010-07-16 18:28fmanStatusassigned => feedback
2010-09-26 08:07fmanNote Added: 0011500
2010-09-26 08:07fmanStatusfeedback => resolved
2010-09-26 08:07fmanFixed in Version => 1.9 Beta 6
2010-09-26 08:07fmanResolutionopen => fixed
2010-10-09 08:00fmanNote Added: 0011745
2010-10-09 08:00fmanStatusresolved => closed

Notes
(0010677)
fman   
2010-07-16 18:28   
- this has been solved on 1.9 -
20091229 - eloff - BUGID 3021 - getInternalID() - fixed error when tc prefix contains glue character

Please get 1.9 Beta 5, retest and let us know
(0011500)
fman   
2010-09-26 08:07   
no more user feedback
(0011745)
fman   
2010-10-09 08:00   
Release 1.9 RC1