Cytoscape Bug Report Form

Please Read before Submitting New Bug

Please use this form to report reproducible Cytoscape bugs. It is helpful if you can confirm that the bug is reproducible on another computer. Please use the Cytoscape helpdesk instead to ask general questions about Cytoscape, including questions about Cytoscape installation problems and installing apps.

{'issue'}->{'id'}; } function submitNewBug2Remine( $bugReport, $submitResult) { error_log("Starting to submit bug\n", 3, "debug.log"); // Save the bug report in a tmp file 'newBug.jason' in jason format $myFile = "_newBug.json"; $fh = fopen($myFile, 'w') or die("can't open file _newBug.json"); $json = toJSON($bugReport, $submitResult); error_log("Submitting bug ".$json."\n", 3, "debug.log"); fwrite($fh, $json); fclose($fh); // submit the new bug to redmine (Cytosape bug tracker) system("./run_curl.sh > _reportOutput.txt"); } function toJSON( $bugReport, $submitResult) { $description = ""; if( array_key_exists('cyversion', $bugReport) && array_key_exists('description', $bugReport) ) { $description = '\\nOS: '.$bugReport['os'].'\nCytoscape version: '.$bugReport['cyversion'].'\\n\\n'.$bugReport['description']; } if ($submitResult != null){ $description = $description."\\n\\n\\nAttached file is at ".$submitResult."\\n\\n\\n"; } $description = $description.'\\n\\n\\nReported by: '.$bugReport['name']; //.'\nE-mail: '.$bugReport['email']; $description = $description.'\\nEmail: '.$bugReport['email']; $subject = $bugReport['cysubject']; if ($subject != null) { $subject = trim($subject); } if ($subject == null || $subject == ""){ $subject = "no subject"; } $json = "{ \"issue\": { \"project_id\": \"cytoscape3\", \"subject\": \"".clean_unwanted_characters($subject)."\", \"description\": \"".clean_unwanted_characters($description)."\" } }"; return $json; } // To prevent JSON injection attack function clean_unwanted_characters($oneStr){ $cleaned_str = $oneStr; return $cleaned_str; } function isUserInputValid($userInput) { if ($userInput == NULL){ return false; } $errorFound = false; //Required Fields //name //email //cyversion //cysubject //os //description if( !array_key_exists('name', $userInput) || $userInput['name'] == null ) { global $nameErr; $nameErr = "* Name is a required field."; $errorFound = true; } if( !array_key_exists('email', $userInput) || $userInput['email'] == null ) { global $emailErr; $emailErr = "* Email is a required field."; $errorFound = true; } if( !array_key_exists('cyversion', $userInput) || $userInput['cyversion'] == null ) { global $versionErr; $versionErr = "* Version is a required field and must start with 3.x -- (where x is any valid version number)"; $errorFound = true; } else if( !(strpos($userInput['cyversion'], "3.") === 0) ) { global $versionErr; $versionErr = "* Version must start with 3.x -- (where x is any valid version number)"; $errorFound = true; } if( !array_key_exists('cysubject', $userInput) || $userInput['cysubject'] == null ) { global $subjectErr; $subjectErr = "* Subject is a required field."; $errorFound = true; } if( !array_key_exists('os', $userInput) || $userInput['os'] == null ) { global $osErr; $osErr = "* OS is a required field."; $errorFound = true; } if( !array_key_exists('description', $userInput) || $userInput['description'] == null ) { global $descriptionErr; $descriptionErr = "* Description is required."; $errorFound = true; } return !$errorFound; } function sendNotificationEmail($bugReport, $bug_id_redmine) { include 'cytostaff_emails.inc'; $from = $cytostaff_emails[0]; $to = ""; for ($i=1; $i Your bug report has been submitted and Cytoscape staff will review your report. Thank you for helping to make Cytoscape better! New bug report e-mail was sent to Cytostaff!

"); } else { echo("

Failed to send a notification e-mail to cytostaff...

"); } } function showForm($userInput) { global $nameErr, $emailErr, $versionErr, $osErr, $subjectErr, $descriptionErr; ?>

All fields are required, attachment is optional.


Optional, Attachments (Session files, data files, screen-shots, etc.)