[pkg-nagios-changes] [Git][nagios-team/pkg-nagvis][upstream] New upstream version 1.9.27

Bas Couwenberg (@sebastic) gitlab at salsa.debian.org
Fri Jul 16 08:58:34 BST 2021



Bas Couwenberg pushed to branch upstream at Debian Nagios Maintainer Group / pkg-nagvis


Commits:
d96f843d by Bas Couwenberg at 2021-07-16T09:35:27+02:00
New upstream version 1.9.27
- - - - -


3 changed files:

- ChangeLog
- share/frontend/nagvis-js/ext/dwoo-1.1.0/Dwoo/Compiler.php
- share/server/core/defines/global.php


Changes:

=====================================
ChangeLog
=====================================
@@ -1,13 +1,18 @@
+1.9.27
+Core
+  * FIX: Fix PHP 7 (or older) incompatibilities introduced with 1.9.26
+    (Error (Error): Call to undefined method ReflectionType::getName())
+
 1.9.26
-Core:
+Core
   * FIX: Fix PHP 8 incompatibilites
 
-Worldmap:
+Worldmap
   * Add new option filter_group for filtering host objects on a worldmap based
     on the membership of hosts in a host group.
 
 1.9.25
-Core:
+Core
   * FIX: Fix map corruption regression introduced with 1.9.24
   This issue was triggered by objects on a map having a numeric "object_id"
   attribute. The issue resulted in map configuration files without "define
@@ -18,11 +23,11 @@ Core:
   * FIX: Fix possible map corruption caused by object ID cleanup (#280)
   * FIX: Fix missing socket string in some livestatus backend error messages
 
-Frontend:
+Frontend
   * FIX: Fix editing map options when object_id not set in global section object
 
 1.9.24
-Core:
+Core
   * FIX: Fix more PHP 7.4 incompatibilites (#265)
     (This fixes one issue related to the PDO auth module and one issue related
     to map configurations with numeric object_id attributes.)
@@ -30,20 +35,20 @@ Core:
     (Undefined index 'downtime' was shown)
 
 1.9.23
-Frontend:
+Frontend
   * Make NagVis compatible with Checkmk 2.0 auth cookies
 
 1.9.22
-Core:
+Core
   * FIX: Fix error handling of DB backends when DB opening failed
     (Undefined property: CorePDOHandler::$dsn) (#267)
 
-Frontend:
+Frontend
   * Colors with alpha channel are now allowed (format: #RRGGBBAA) (#270)
   * FIX: Improve validation of file names in several places to prevent input of
     not printable characters.
 
-Worldmap:
+Worldmap
   * Improve recently introduced textbox scaling according to zoom (pull #263)
 
 1.9.21


=====================================
share/frontend/nagvis-js/ext/dwoo-1.1.0/Dwoo/Compiler.php
=====================================
@@ -3006,18 +3006,34 @@ class Dwoo_Compiler implements Dwoo_ICompiler
 		}
 
 		$out = array();
-                foreach ($ref->getParameters() as $param) {
-			if ($param->getType() && !$param->getType()->isBuiltin() && $param->getType()->getName() === 'Dwoo') {
-				continue;
-			}
-			if ($param->getType() && !$param->getType()->isBuiltin() && $param->getType()->getName() === 'Dwoo_Compiler') {
-				continue;
+
+		if (PHP_VERSION_ID < 70100) {
+			foreach ($ref->getParameters() as $param) {
+				if (($class = $param->getClass()) !== null && $class->name === 'Dwoo') {
+					continue;
+				}
+				if (($class = $param->getClass()) !== null && $class->name === 'Dwoo_Compiler') {
+					continue;
+				}
+				if ($param->getName() === 'rest' && $param->isArray() === true) {
+					$out[] = array('*', $param->isOptional(), null);
+				}
+				$out[] = array($param->getName(), $param->isOptional(), $param->isOptional() ? $param->getDefaultValue() : null);
 			}
-			if ($param->getName() === 'rest' && $param->getType() && $param->getType()->getName() === 'array') {
-				$out[] = array('*', $param->isOptional(), null);
+		} else {
+			foreach ($ref->getParameters() as $param) {
+				if ($param->getType() && !$param->getType()->isBuiltin() && $param->getType()->getName() === 'Dwoo') {
+					continue;
+				}
+				if ($param->getType() && !$param->getType()->isBuiltin() && $param->getType()->getName() === 'Dwoo_Compiler') {
+					continue;
+				}
+				if ($param->getName() === 'rest' && $param->getType() && $param->getType()->getName() === 'array') {
+					$out[] = array('*', $param->isOptional(), null);
+				}
+				$out[] = array($param->getName(), $param->isOptional(), $param->isOptional() ? $param->getDefaultValue() : null);
 			}
-			$out[] = array($param->getName(), $param->isOptional(), $param->isOptional() ? $param->getDefaultValue() : null);
-		}
+		}
 
 		return $out;
 	}


=====================================
share/server/core/defines/global.php
=====================================
@@ -23,7 +23,7 @@
  *****************************************************************************/
  
 // NagVis Version
-define('CONST_VERSION', '1.9.26');
+define('CONST_VERSION', '1.9.27');
 
 // Set PHP error handling to standard level
 // Different levels for php versions below 5.1 because PHP 5.1 reports



View it on GitLab: https://salsa.debian.org/nagios-team/pkg-nagvis/-/commit/d96f843dba527eb4a3d73d294139c16ecd5a0762

-- 
View it on GitLab: https://salsa.debian.org/nagios-team/pkg-nagvis/-/commit/d96f843dba527eb4a3d73d294139c16ecd5a0762
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-nagios-changes/attachments/20210716/e83a5568/attachment-0001.htm>


More information about the pkg-nagios-changes mailing list