View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0008810 | CDash | public | 2009-03-28 07:43 | 2009-03-28 15:05 | |||||
Reporter | R Wackerbarth | ||||||||
Assigned To | Julien Jomier | ||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||
Status | closed | Resolution | fixed | ||||||
Platform | OS | OS Version | |||||||
Product Version | |||||||||
Target Version | Fixed in Version | 1.4 | |||||||
Summary | 0008810: When Editing a project, createProject.php get an error calling fopen. | ||||||||
Description | Unless you specify a Logo file, fopen() fails at line 329 because CDash no longer uses a file in the file system to store the project logo. The correction is to test to see if a file was specified before attempting to fopen() the file and examine its contents. If no file is specified, the correct action is to "do nothing" with respect to the project logo. Patch attached. | ||||||||
Additional Information | =================================================================== --- createProject.php (revision 1599) +++ createProject.php (working copy) @@ -326,7 +326,11 @@ $imgid = qnum($project_array["imageid"]); - $handle = fopen($_FILES['logo']['tmp_name'],"r"); + $handle = 0; + if($_FILES['logo']['size']) + { + $handle = fopen($_FILES['logo']['tmp_name'],"r"); + } $contents = 0; if($handle) { =================================================================== | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
Relationships | |
Relationships |
Notes | |
(0015832) Julien Jomier (manager) 2009-03-28 15:05 |
Fixed in CDash 1.4. Thanks for the report. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2009-03-28 07:43 | R Wackerbarth | New Issue | |
2009-03-28 14:40 | Julien Jomier | Status | new => assigned |
2009-03-28 14:40 | Julien Jomier | Assigned To | => Julien Jomier |
2009-03-28 15:05 | Julien Jomier | Note Added: 0015832 | |
2009-03-28 15:05 | Julien Jomier | Status | assigned => closed |
2009-03-28 15:05 | Julien Jomier | Resolution | open => fixed |
2009-03-28 15:05 | Julien Jomier | Fixed in Version | => 1.4 |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |