MantisBT - TestLink
View Issue Details
0008130TestLinkTest Execution - Bulk Modepublic2017-11-08 12:262019-01-21 10:00
albertogarci86 
 
highmajoralways
newopen 
1.9.16 (2016 Q4) 
 
mysql
0008130: Save execution DB Access Error in bulk mode
Save execution in bulk mode for several test cases display an error:

==============================================================================
 DB Access Error - debug_print_backtrace() OUTPUT START
 ATTENTION: Enabling more debug info will produce path disclosure weakness (CWE-200)
            Having this additional Information could be useful for reporting
            issue to development TEAM.
 ==============================================================================
#0 database->exec_query(/* Class:testproject - Method: getTestCasePrefix */ SELECT prefix FROM testprojects WHERE id = ) called at [/var/www/testlink-1.9.17/lib/functions/database.class.php:563]
#1 database->fetchFirstRow(/* Class:testproject - Method: getTestCasePrefix */ SELECT prefix FROM testprojects WHERE id = ) called at [/var/www/testlink-1.9.17/lib/functions/database.class.php:583]
0000002 database->fetchOneValue(/* Class:testproject - Method: getTestCasePrefix */ SELECT prefix FROM testprojects WHERE id = ) called at [/var/www/testlink-1.9.17/lib/functions/testproject.class.php:1076]
0000003 testproject->getTestCasePrefix() called at [/var/www/testlink-1.9.17/lib/functions/testcase.class.php:1678]
0000004 testcase->getPrefix(Array ([0] => 49971,[1] => 49973,[2] => 49961,[3] => 49963,[4] => 49965,[5] => 49967,[6] => 49969), ) called at [/var/www/testlink-1.9.17/lib/functions/testcase.class.php:5088]
0000005 testcase->getExternalID(Array ([0] => 49971,[1] => 49973,[2] => 49961,[3] => 49963,[4] => 49965,[5] => 49967,[6] => 49969)) called at [/var/www/testlink-1.9.17/lib/execute/execSetResults.php:197]
Test execution > Select a test suite with several test cases > click on save execution button (Bulk TC status management field)

Check the attached screenshots
No tags attached.
jpg save_exec1.jpg (67,796) 2017-11-08 12:26
http://mantis.testlink.org/file_download.php?file_id=4848&type=bug
jpg

jpg save_exec_1_1.jpg (229,249) 2017-11-08 12:29
http://mantis.testlink.org/file_download.php?file_id=4849&type=bug
jpg

jpg save_exec2.jpg (210,769) 2017-11-08 12:29
http://mantis.testlink.org/file_download.php?file_id=4850&type=bug
jpg

log userlog0.log (182) 2017-11-08 12:33
http://mantis.testlink.org/file_download.php?file_id=4851&type=bug
log userlog1.log (3,538) 2017-11-08 12:33
http://mantis.testlink.org/file_download.php?file_id=4852&type=bug
Issue History
2017-11-08 12:26albertogarci86New Issue
2017-11-08 12:26albertogarci86File Added: save_exec1.jpg
2017-11-08 12:27albertogarci86Note Added: 0027002
2017-11-08 12:29albertogarci86File Added: save_exec_1_1.jpg
2017-11-08 12:29albertogarci86File Added: save_exec2.jpg
2017-11-08 12:33albertogarci86Note Added: 0027003
2017-11-08 12:33albertogarci86File Added: userlog0.log
2017-11-08 12:33albertogarci86File Added: userlog1.log
2017-11-08 13:27albertogarci86Note Added: 0027004
2017-11-21 15:26albertogarci86Note Added: 0027023
2019-01-21 10:00ekorschNote Added: 0028455

Notes
(0027002)
albertogarci86   
2017-11-08 12:27   
Sorry for the initial screenshot, I send you the good one

Regards
(0027003)
albertogarci86   
2017-11-08 12:33   
Please, find attached the DEBUG log recorded when this action is performed
(0027004)
albertogarci86   
2017-11-08 13:27   
Following the log, this function is not working properly.
The $id has not a defined value, has it?

  function getTestCasePrefix($id)
  {
    $debugMsg = 'Class:' . __CLASS__ . ' - Method: ' . __FUNCTION__;
    $ret=null;
    $sql = "/* $debugMsg */ SELECT prefix FROM {$this->object_table} WHERE id = {$id}";
    $ret = $this->db->fetchOneValue($sql);
    return ($ret);
  }
(0027023)
albertogarci86   
2017-11-21 15:26   
Please, any update?
(0028455)
ekorsch   
2019-01-21 10:00   
Hi,

Is there any update this ticket?

BR,
Kornel