MantisBT - TestLink
View Issue Details
0003405TestLinkTest Specificationpublic2010-04-28 06:462010-08-31 20:29
eliasn 
fman 
normalminoralways
closedfixed 
1.9 Beta 3 
1.9 Beta 5 
Firefox 3.6.3
5.2.11
0003405: Navigation Bar - Test Case Search - Crash when search a nonexistent testcase
When I try search a testcase on the topbar and this testcase doesn't exist, some information appears on the screen:
#0 database->exec_query(SELECT prefix FROM testprojects WHERE id = ) called at [C:\wamp\www\testlink-1.9.3b\lib\functions\database.class.php:514]
#1 database->fetchFirstRow(SELECT prefix FROM testprojects WHERE id = ) called at [C:\wamp\www\testlink-1.9.3b\lib\functions\database.class.php:532]
0000002 database->fetchOneValue(SELECT prefix FROM testprojects WHERE id = ) called at [C:\wamp\www\testlink-1.9.3b\lib\functions\testproject.class.php:853]
0000003 testproject->getTestCasePrefix() called at [C:\wamp\www\testlink-1.9.3b\lib\functions\testcase.class.php:1310]
0000004 testcase->getPrefix(0, ) called at [C:\wamp\www\testlink-1.9.3b\lib\functions\testcase.class.php:4015]
0000005 testcase->getExternalID(0, ) called at [C:\wamp\www\testlink-1.9.3b\lib\functions\testcase.class.php:3994]
0000006 testcase->buildDirectWebLink(http://localhost/testlink-1.9.3b/, [^] 0) called at [C:\wamp\www\testlink-1.9.3b\lib\testcases\archiveData.php:131]
Excel
png tl_search_testcase.png (15,258) 2010-04-28 06:46
http://mantis.testlink.org/file_download.php?file_id=1536&type=bug
png

log userlog1.log (1,234) 2010-04-28 06:46
http://mantis.testlink.org/file_download.php?file_id=1537&type=bug
txt serial do Mcaffe UOL.txt (41) 2010-04-28 10:58
http://mantis.testlink.org/file_download.php?file_id=1538&type=bug
zip fix-3405.zip (2,871) 2010-05-02 17:15
http://mantis.testlink.org/file_download.php?file_id=1547&type=bug
Issue History
2010-04-28 06:46eliasnNew Issue
2010-04-28 06:46eliasnFile Added: tl_search_testcase.png
2010-04-28 06:46eliasnBrowser => Firefox 3.6.3
2010-04-28 06:46eliasnPHP Version => 5.2.11
2010-04-28 06:46eliasnFile Added: userlog1.log
2010-04-28 10:57pucsampaTag Attached: Excel
2010-04-28 10:58pucsampaFile Added: serial do Mcaffe UOL.txt
2010-04-28 10:58pucsampaNote Added: 0009824
2010-04-28 13:23fmanNote Added: 0009825
2010-04-28 13:29fmanStatusnew => assigned
2010-04-28 13:29fmanAssigned To => fman
2010-04-28 19:08eliasnNote Added: 0009827
2010-04-29 01:53pucsampaNote Deleted: 0009824
2010-05-02 17:13fmanSummarySome information appear when I try search a nonexistent testcase => Navigation Bar - Test Case Search - Crash when search a nonexistent testcase
2010-05-02 17:15fmanFile Added: fix-3405.zip
2010-05-02 17:16fmanNote Added: 0009839
2010-05-02 17:16fmanStatusassigned => feedback
2010-05-02 21:10eliasnNote Added: 0009841
2010-05-02 23:29fmanStatusfeedback => resolved
2010-05-02 23:29fmanFixed in Version => 1.9 Beta 5
2010-05-02 23:29fmanResolutionopen => fixed
2010-08-31 20:29fmanNote Added: 0011216
2010-08-31 20:29fmanStatusresolved => closed

Notes
(0009825)
fman   
2010-04-28 13:23   
@eliasn:
1. info you see is due to a DB CRASH
2. please give detailed steps to reproduce

@pucsampa:
please clarify your note
(0009827)
eliasn   
2010-04-28 19:08   
@fman
just put a nonexistent TCID, like TC-9999 in TC form search (field localized near links 'events') and click in search

for the note from @pucsampa, delete it. it's a attached about a antivirus serial (probably a spanner)
(0009839)
fman   
2010-05-02 17:16   
Try with attached fix, and give us feedback
(0009841)
eliasn   
2010-05-02 21:10   
Now the info about db crash no longer appear anymore.
Issue corrected.
(0011216)
fman   
2010-08-31 20:29   
Release BETA 6 - 20100831