Mantis Bugtracker          
testlink.org

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008130TestLinkTest Execution - Bulk Modepublic2017-11-08 12:262017-11-08 13:27
Reporteralbertogarci86 
Assigned To 
PriorityhighSeveritymajorReproducibilityalways
StatusnewResolutionopen 
PlatformOSOS Version
Product Version1.9.16 (2016 Q4) 
Fixed in Version 
Summary0008130: Save execution DB Access Error in bulk mode
DescriptionSave 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]
Steps To ReproduceTest execution > Select a test suite with several test cases > click on save execution button (Bulk TC status management field)

Check the attached screenshots
TagsNo tags attached.
Database (MySQL,Postgres,etc)mysql
Browser
PHP Version
TestCaseID
QA Team - Task Workflow Status
Attached Filesjpg file icon save_exec1.jpg [^] (67,796 bytes) 2017-11-08 12:26


jpg file icon save_exec_1_1.jpg [^] (229,249 bytes) 2017-11-08 12:29


jpg file icon save_exec2.jpg [^] (210,769 bytes) 2017-11-08 12:29


log file icon userlog0.log [^] (182 bytes) 2017-11-08 12:33
log file icon userlog1.log [^] (3,538 bytes) 2017-11-08 12:33

- Relationships

-  Notes
(0027002)
albertogarci86 (reporter)
2017-11-08 12:27

Sorry for the initial screenshot, I send you the good one

Regards
(0027003)
albertogarci86 (reporter)
2017-11-08 12:33

Please, find attached the DEBUG log recorded when this action is performed
(0027004)
albertogarci86 (reporter)
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);
  }

- Issue History
Date Modified Username Field Change
2017-11-08 12:26 albertogarci86 New Issue
2017-11-08 12:26 albertogarci86 File Added: save_exec1.jpg
2017-11-08 12:27 albertogarci86 Note Added: 0027002
2017-11-08 12:29 albertogarci86 File Added: save_exec_1_1.jpg
2017-11-08 12:29 albertogarci86 File Added: save_exec2.jpg
2017-11-08 12:33 albertogarci86 Note Added: 0027003
2017-11-08 12:33 albertogarci86 File Added: userlog0.log
2017-11-08 12:33 albertogarci86 File Added: userlog1.log
2017-11-08 13:27 albertogarci86 Note Added: 0027004



Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker