Mantis Bugtracker          
testlink.org

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0003977TestLinkDatabase MySQLpublic2010-11-03 18:392010-11-14 12:07
Reporterwilliam.baleson 
Assigned Tofman 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformUbuntuOSUbuntuOS Version10.04.1
Product Version1.9 RC 1 
Fixed in Version1.9 (Prague) 
Summary0003977: If a user has a table prefix set for the databases, when they try to save a test step, a db access error is thrown
Descriptionon line 4900 of lib/functions/testcase.class.php the following line should be changed from

function update_last_modified($tcversion_id,$user_id,$time_stamp=null)
" WHERE tcversions.id = " . $this->db->prepare_int($tcversion_id)

to

" WHERE ".$this->tables['tcversions'].".id = " . $this->db>prepare_int($tcversion_id);

so that it actually uses the table prefix rather than the hardcoded value of "tcversions.id"
Steps To Reproduce#) Create a testlink setup that uses a table prefix
#) Create a project
#) create a test suite
#) create a test case
#) create a test step
#) try to save the test step and verify that a database access error is thrown
TagsNo tags attached.
Database (MySQL,Postgres,etc)Mysql
BrowserChrome
PHP Version5.3.2
TestCaseID
QA Team - Task Workflow Status
Attached Files

- Relationships

-  Notes
(0012490)
fman (administrator)
2010-11-14 12:07

1.9 (Prague) Released

- Issue History
Date Modified Username Field Change
2010-11-03 18:39 william.baleson New Issue
2010-11-03 19:36 fman Status new => resolved
2010-11-03 19:36 fman Fixed in Version => 1.9 (Prague)
2010-11-03 19:36 fman Resolution open => fixed
2010-11-03 19:36 fman Assigned To => fman
2010-11-14 12:07 fman Note Added: 0012490
2010-11-14 12:07 fman Status resolved => closed



Copyright © 2000 - 2020 MantisBT Team
Powered by Mantis Bugtracker