View Issue Details

IDProjectCategoryView StatusLast Update
0000201pgpoolAdminBugpublic2016-05-25 17:08
ReporterRoman PashinAssigned Toanzai 
PriorityhighSeverityblockReproducibilityalways
Status resolvedResolutionfixed 
PlatformLinuxOSDebianOS Version8.0
Product Version 
Target VersionFixed in Version 
Summary0000201: 'Recover' button greyed out always in gui 'Node status'
DescriptionIt turned out, that in common.php in function readConfigParams($paramList = array()

didgits are cutting of 'keys' and it affect such keys as 'recovery_1st_stage_command' and 'recovery_2nd_stage_command'
Steps To ReproduceInstall pgpooladmin 3.5.2. Configure streaming replication with at least 2 backends.

Stop postgres server on slave.
Reload status page. Button 'Recover' should be greyed out with comment "fill in variable 'recover_1st_stage_command'".
Additional InformationIt works with following patch:

common.php
343,349c343,344
<
< if ( strpos($key, '_1st_') || strpos ($key, '_2nd_')){
< $key_wo_num = $key;
< } else {
< $num = preg_replace('/[^0-9]/', NULL, $key);
< $key_wo_num = str_replace($num, NULL, $key);
< }
---
> $num = preg_replace('/[^0-9]/', NULL, $key);
> $key_wo_num = str_replace($num, NULL, $key);
TagsNo tags attached.

Issue History

Date Modified Username Field Change
2016-05-24 22:31 Roman Pashin New Issue
2016-05-25 17:07 anzai Note Added: 0000842
2016-05-25 17:08 anzai Status new => resolved
2016-05-25 17:08 anzai Resolution open => fixed
2016-05-25 17:08 anzai Assigned To => anzai