Mantis Bugtracker          
testlink.org

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008972TestLinkTest Executepublic2020-08-05 14:502020-08-08 16:56
Reportersajay77 
Assigned Tofman 
PriorityhighSeveritymajorReproducibilityalways
StatusresolvedResolutionno change required 
PlatformlinuxOSCentosOS Version7.4
Product Version 
Fixed in Version 
Summary0008972: After selecting to execute execute testcase getting webpage 500
DescriptionWe have Testlink1.9.17 working fine with mysql-community-server-5.6.41 and php7.4.
we have upgrade it to Testlink1.9.18. At time using sql to upgrade queries no error seen.

Login successful and when select a Project and test plan. When click on execute tests , getting error page with error 500. Screen of same is attached. In httpd errorlogs PHP fatal error is seen it as below.

[Wed Aug 05 07:41:57.279068 2020] [php7:error] [pid 16501] [client 10.0.203.181:49265] PHP Fatal error: Uncaught Exception: Config Issue - exec status code: q in /var/www/html/testlink-1.9.18/lib/functions/execTreeMenu.inc.php:446\nStack trace:\n#0 /var/www/html/testlink-1.9.18/lib/functions/execTreeMenu.inc.php(490): prepareExecTreeNode(Object(database), Array, Array, Array, Array, Array)\n#1 /var/www/html/testlink-1.9.18/lib/functions/execTreeMenu.inc.php(490): prepareExecTreeNode(Object(database), Array, Array, Array, Array, Array)\n#2 /var/www/html/testlink-1.9.18/lib/functions/execTreeMenu.inc.php(490): prepareExecTreeNode(Object(database), Array, Array, Array, Array, Array)\n#3 /var/www/html/testlink-1.9.18/lib/functions/execTreeMenu.inc.php(202): prepareExecTreeNode(Object(database), Array, Array, Array, NULL, Array)\n#4 /var/www/html/testlink-1.9.18/lib/functions/tlTestCaseFilterControl.class.php(1131): execTree(Object(database), 'lib/execute/exe...', Array, Object(stdClass), Object(stdClass))\n#5 /var/www/html/testlink-1.9.18/lib/execute/execNavigator.php(35): tlTestCaseFilterControl->build_tree_menu(Object(s in /var/www/html/testlink-1.9.18/lib/functions/execTreeMenu.inc.php on line 446, referer: http://x.x.x.x/testlink-1.9.18/lib/general/frmWorkArea.php?feature=executeTest [^]
[Wed Aug 05 07:41:57.801249 2020] [php7:warn] [pid 9610] [client 10.0.203.181:49273] PHP Warning: Creating default object from empty value in /var/www/html/testlink-1.9.18/config.inc.php on line 859, referer: http://x.x.x.x/testlink-1.9.18/lib/general/frmWorkArea.php?feature=executeTest [^]



 
 
Steps To Reproduceelect a Project and test plan. When click on execute tests , getting error page with error 500. Screen of same is attached. In httpd errorlogs PHP fatal error
Additional InformationThis also tested on mysql-community-server-5.7 and php 7.4 Issue is still reproduceable after upgrade from testlink-1.9.17 to testlink-1.9.18.
TagsNo tags attached.
Database (MySQL,Postgres,etc)mysql- 5.6
BrowserApplicable for chrom, microsoft edge, firefox
PHP Version7.4
TestCaseID
QA Team - Task Workflow StatusTBD
Attached Filespng file icon error.png [^] (71,007 bytes) 2020-08-05 14:50

- Relationships

-  Notes
(0029865)
fman (administrator)
2020-08-06 13:37

this indication seems to provide a hint

> [Wed Aug 05 07:41:57.279068 2020] [php7:error] [pid 16501] [client 10.0.203.181:49265] PHP Fatal error: Uncaught Exception: Config Issue - exec status code: q in /var/www/html/testlink-1.9.18/lib/functions/execTreeMenu.inc.php:446\nStack trace:\n#0 /var/www/html/testlink-
(0029870)
sajay77 (reporter)
2020-08-06 19:15
edited on: 2020-08-06 19:17

Below is output of exception with value printed in httpd_error

PHP Fatal error: Uncaught Exception: Config Issue - exec status code: exec_status==>q,failed,blocked,passed,not_run,not_available,unknown,all in /var/www/html/testlink-1.9.18/lib/functions/execTreeMenu.inc.php:448\

I have debugged the code and found that Error condition was : in execTreeMenu.inc.php at line 440

       if( isset($resultsCfg['code_status'][$tpNode['exec_status']]) ) /* line was cusing the issue */
        {
          $tc_status_descr = $resultsCfg['code_status'][$tpNode['exec_status']];
        }
        else
        {
          throw new Exception("Config Issue - exec status code: {$tpNode['exec_status']}", 1);
        }


if condition on line 440 changed as below. After the change getting proper framesets are displayed, Error 500 and exception in the error got removed . Can you please let me know, is this a proper fix for this?

    if((isset($resultsCfg['code_status']) && ([$tpNode['exec_status']]) ))
    {
          $tc_status_descr = $resultsCfg['code_status'][$tpNode['exec_status']];
        }
        else
        {
          throw new Exception("Config Issue - exec status code: {$tpNode['exec_status']}", 1);
        }

(0029873)
fman (administrator)
2020-08-07 08:30

IMHO no, because the issue is related to the use of a CUSTOM exec status code that is present on DB but has not been configured on the configuration files.
Give a look to your OLD custom configurations
(0029876)
sajay77 (reporter)
2020-08-08 16:56

it is resolved now

- Issue History
Date Modified Username Field Change
2020-08-05 14:50 sajay77 New Issue
2020-08-05 14:50 sajay77 File Added: error.png
2020-08-06 13:37 fman Note Added: 0029865
2020-08-06 13:37 fman QA Team - Task Workflow Status => TBD
2020-08-06 13:37 fman Status new => resolved
2020-08-06 13:37 fman Resolution open => no change required
2020-08-06 13:37 fman Assigned To => fman
2020-08-06 19:15 sajay77 Note Added: 0029870
2020-08-06 19:17 sajay77 Note Edited: 0029870 View Revisions
2020-08-07 08:30 fman Note Added: 0029873
2020-08-08 16:56 sajay77 Note Added: 0029876



Copyright © 2000 - 2020 MantisBT Team
Powered by Mantis Bugtracker