PacketFence
Bug Tracking System

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001289PacketFenceweb adminpublic2011-09-29 16:232011-10-24 20:17
Reporterfgaudreault 
Assigned Tofgaudreault 
PrioritylowSeveritytweakReproducibilityhave not tried
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version3.0.1 
Target Version3.0.2Fixed in Version3.0.2 
Summary0001289: Dashboard won't give SQL stats if MySQL is running on another machine
DescriptionReported on the mailing list, we are not taking into account that MySQL can run on another machine.

Problematic code in pf/html/admin/status/sajax-dashboard.php :
if(!preg_match("/[\'|\"|\;]/", $user) && !preg_match("/[\'|\"|\;]/", $pass)){
      exec("/usr/bin/mysqladmin status -u$user -p$pass", $sql_output);
      if(preg_match("/Queries\sper\ssecond\savg:\s+(\d+\.\d+)/", $sql_output[0], $matches)){
        $sql_queries = $matches[1];
      }
    }

The -h flag is missing.
TagsNo tags attached.
fixed in git revision
fixed in mtn revision3b315a1cd426d37ffbc3e9f03e921ea07e213b32
Attached Files

- Relationships

-  Notes
(0002305)
fgaudreault (viewer)
2011-09-29 16:39

Fixed.
(0002387)
obilodeau (reporter)
2011-10-24 20:15

fix released in 3.0.2

- Issue History
Date Modified Username Field Change
2011-09-29 16:23 fgaudreault New Issue
2011-09-29 16:39 fgaudreault mtn revision => 3b315a1cd426d37ffbc3e9f03e921ea07e213b32
2011-09-29 16:39 fgaudreault Note Added: 0002305
2011-09-29 16:39 fgaudreault Status new => resolved
2011-09-29 16:39 fgaudreault Fixed in Version => +1
2011-09-29 16:39 fgaudreault Resolution open => fixed
2011-09-29 16:39 fgaudreault Assigned To => fgaudreault
2011-10-24 20:15 obilodeau Target Version => 3.0.2
2011-10-24 20:15 obilodeau Note Added: 0002387
2011-10-24 20:16 obilodeau Status resolved => closed
2011-10-24 20:17 obilodeau Fixed in Version +1 => 3.0.2


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker