MantisBT - CDash
View Issue Details
0011432CDashpublic2010-11-10 02:542011-11-04 15:24
Michal Cihar 
Julien Jomier 
normalminoralways
resolvedfixed 
1.9 
1.9 
0011432: Undefined variables
CDash emits several PHP notices about undefined variables/indexes.
PHP Notice: Undefined variable: projectname in viewCoverage.php on line 67
PHP Notice: Undefined variable: projectname in viewCoverage.php on line 70
PHP Notice: Undefined variable: projectname in viewCoverage.php on line 79
PHP Notice: Undefined variable: project_array in viewCoverage.php on line 79
PHP Notice: Undefined variable: project_array in viewCoverage.php on line 120
PHP Notice: Undefined variable: project_array in viewCoverage.php on line 122
PHP Notice: Undefined variable: project_array in viewCoverage.php on line 125
PHP Notice: Undefined variable: coveragetype in viewCoverage.php on line 212
PHP Notice: Undefined index: c in models/coveragefile.php on line 90
PHP Notice: Undefined variable: coveragefileid in cdash/common.php on line 1017
PHP Notice: Undefined variable: projectname in viewDynamicAnalysis.php on line 51
PHP Notice: Undefined variable: projectname in viewDynamicAnalysis.php on line 55
PHP Notice: Undefined variable: projectname in viewDynamicAnalysis.php on line 63
PHP Notice: Undefined variable: project_array in viewDynamicAnalysis.php on line 63
PHP Notice: Undefined variable: project_array in viewTest.php on line 59
PHP Notice: Undefined variable: projectname in viewTest.php on line 62
PHP Notice: Undefined variable: projectname in viewTest.php on line 66
PHP Notice: Undefined variable: projectname in viewTest.php on line 105
PHP Notice: Undefined index: nightlytime in cdash/common.php on line 1270
PHP Notice: Undefined variable: projectname in viewTest.php on line 106
PHP Notice: Undefined variable: project_array in viewTest.php on line 130
PHP Notice: Undefined variable: projectshowtesttime in viewTest.php on line 170
PHP Notice: Undefined variable: project_array in viewCoverageFile.php on line 51
PHP Notice: Undefined variable: projectname in viewCoverageFile.php on line 55
PHP Notice: Undefined variable: projectname in viewCoverageFile.php on line 59
No tags attached.
Issue History
2010-11-10 02:54Michal CiharNew Issue
2010-11-10 03:32Julien JomierStatusnew => assigned
2010-11-10 03:32Julien JomierAssigned To => Julien Jomier
2010-11-10 03:42Julien JomierNote Added: 0023121
2010-11-10 04:46Michal CiharNote Added: 0023122
2010-11-10 04:58Julien JomierNote Added: 0023124
2010-11-10 04:58Julien JomierStatusassigned => resolved
2010-11-10 04:58Julien JomierFixed in Version => 1.8
2010-11-10 04:58Julien JomierResolutionopen => fixed
2010-11-11 02:51Michal CiharNote Added: 0023157
2010-11-11 02:51Michal CiharStatusresolved => feedback
2010-11-11 02:51Michal CiharResolutionfixed => reopened
2010-11-11 03:31Julien JomierNote Added: 0023159
2011-11-04 15:24Julien JomierNote Added: 0027727
2011-11-04 15:24Julien JomierStatusfeedback => resolved
2011-11-04 15:24Julien JomierFixed in Version1.8 => 1.9
2011-11-04 15:24Julien JomierResolutionreopened => fixed

Notes
(0023121)
Julien Jomier   
2010-11-10 03:42   
It seems that for these pages either the buildid is not valid anymore in the database (build has been removed). Could you check that the link is valid from the main dashboard?
(0023122)
Michal Cihar   
2010-11-10 04:46   
Some of these happen on submission (eg. PHP Notice: Undefined index: c in models/coveragefile.php on line 90 and PHP Notice: Undefined variable: coveragefileid in cdash/common.php on line 1017), so it must be problem somewhere.

The rest seems to be indeed for non existing builds, however I think it should produce rather some error page than failing silently.
(0023124)
Julien Jomier   
2010-11-10 04:58   
Should be better now. Let me know otherwise. Thanks for the report!
(0023157)
Michal Cihar   
2010-11-11 02:51   
Unfortunately there are still some left.

These (probably) happen on browsing some non existing builds:

PHP Notice: Undefined index: nightlytime in cdash/common.php on line 1270
PHP Notice: Undefined variable: projectname in viewConfigure.php on line 51
PHP Notice: Undefined variable: project_array in viewConfigure.php on line 55
PHP Notice: Undefined variable: projectname in viewConfigure.php on line 56
PHP Notice: Undefined variable: projectname in viewConfigure.php on line 65

And I get dozens of these on submission:

PHP Notice: Undefined variable: coveragefileid in cdash/common.php on line 1017

What leads to empty file list in coverage (for example https://cdash.cihar.com/viewCoverage.php?buildid=11215 [^] ) and then:

PHP Notice: Undefined variable: coveragetype in viewCoverage.php on line 218
(0023159)
Julien Jomier   
2010-11-11 03:31   
Thanks a lot for the report. I have committed the fixes, let me know if more are showing up. However I don't know why you don't get a list of coverage...
(0027727)
Julien Jomier   
2011-11-04 15:24   
Please reopen if this is still happening