Your message dated Thu, 12 Dec 2013 21:21:25 +0000
with message-id <[email protected]>
and subject line Bug#696235: fixed in nagvis 1:1.7.9+dfsg1-1~exp1
has caused the Debian Bug report #696235,
regarding nagvis: PHP error when opening the main configuration
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
696235: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=696235
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: nagvis
Version: 1:1.6.6+dfsg.1-2
Severity: important
Tags: patch

When trying to open the main configuration in the frontend the
following PHP error pops up:

Error: (0) Array to string conversion ([...]/WuiViewEditMainCfg.php:126)

The error was fixed upstream in 1.7 and 1.6 branches.

Please see the attached upstream patch.

Best Regards
Markus Frosch

Further links:
http://www.monitoring-portal.org/wbb/index.php?page=Thread&threadID=25901
http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=61a951c3c0a333a27a26612bcc8a5f380eaf05e9

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages nagvis depends on:
ii  check-mk-livestatus    1.1.12p7-1
ii  debconf [debconf-2.0]  1.5.46
ii  graphviz               2.26.3-12
ii  libapache2-mod-php5    5.4.4-10
ii  php-gettext            1.0.11-1
ii  php-net-socket         1.0.9-2
ii  php5-common            5.4.4-10
ii  php5-gd                5.4.4-10
ii  php5-sqlite            5.4.4-10
ii  ucf                    3.0025+nmu3

nagvis recommends no packages.

Versions of packages nagvis suggests:
pn  nagvis-demos  <none>

-- Configuration Files:
/etc/nagvis/automaps/__automap.cfg changed [not included]

-- debconf information excluded
X-Git-Url: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis%2Fnagvis;a=blobdiff_plain;f=share%2Fserver%2Fcore%2Fclasses%2FWuiViewEditMainCfg.php;h=ef07ce5e313827e6bf876274994d245fa3c989b5;hp=c9229214822830723336d83ef65b42030e66c710;hb=61a951c3c0a333a27a26612bcc8a5f380eaf05e9;hpb=4ebda570f316d6ec0650472c2f1f74930ec6c2bf

diff --git a/share/server/core/classes/WuiViewEditMainCfg.php b/share/server/core/classes/WuiViewEditMainCfg.php
index c922921..ef07ce5 100644
--- a/share/server/core/classes/WuiViewEditMainCfg.php
+++ b/share/server/core/classes/WuiViewEditMainCfg.php
@@ -56,7 +56,6 @@ class WuiViewEditMainCfg {
      *
      * @return	Array Html
      * @author 	Lars Michelsen <[email protected]>
-     * FIXME: Recode to have all the HTML code in the template
      */
     function getFields() {
         global $CORE;
@@ -123,7 +122,9 @@ class WuiViewEditMainCfg {
                             $ret .= '<td class="tdfield"></td>';
                         } else {
                             $ret .= '<td class="tdfield">';
-                            $ret .= "<img style=\"cursor:help\" src=\"./images/help_icon.png\" onclick=\"javascript:alert('".l($propname)." (".l('defaultValue').": ".$arr[$propname]['default'].")')\" />";
+                            $default_str = is_array($arr[$propname]['default']) ? implode(',', $arr[$propname]['default']) : $arr[$propname]['default'];
+                            $ret .= "<img style=\"cursor:help\" src=\"./images/help_icon.png\" "
+                                   ."onclick=\"javascript:alert('".l($propname)." (".l('defaultValue').": ".$default_str.")')\" />";
                             $ret .= '</td>';
                         }
 
@@ -143,14 +144,6 @@ class WuiViewEditMainCfg {
                                     case 'headertemplate':
                                         $arrOpts = $CORE->getAvailableHeaderTemplates();
                                     break;
-                                    case 'autoupdatefreq':
-                                        $arrOpts = Array(Array('value'=>'0','label'=>l('disabled')),
-                                                         Array('value'=>'2','label'=>'2'),
-                                                         Array('value'=>'5','label'=>'5'),
-                                                         Array('value'=>'10','label'=>'10'),
-                                                         Array('value'=>'25','label'=>'25'),
-                                                         Array('value'=>'50','label'=>'50'));
-                                    break;
                                 }
 
                                 $ret .= '<select id="'.$cat.'_'.$propname.'" name="'.$cat.'_'.$propname.'" onBlur="validateMainConfigFieldValue(this, 0)">';

--- End Message ---
--- Begin Message ---
Source: nagvis
Source-Version: 1:1.7.9+dfsg1-1~exp1

We believe that the bug you reported is fixed in the latest version of
nagvis, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Markus Frosch <[email protected]> (supplier of updated nagvis package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Thu, 12 Dec 2013 21:32:45 +0100
Source: nagvis
Binary: nagvis nagvis-demos
Architecture: source all
Version: 1:1.7.9+dfsg1-1~exp1
Distribution: experimental
Urgency: low
Maintainer: Debian Nagios Maintainer Group 
<[email protected]>
Changed-By: Markus Frosch <[email protected]>
Description: 
 nagvis     - visualization addon for Nagios or Icinga
 nagvis-demos - visualization addon for Nagios or Icinga - demo maps
Closes: 669819 696235 709956
Changes: 
 nagvis (1:1.7.9+dfsg1-1~exp1) experimental; urgency=low
 .
   * Maintainer was switched team internally to Markus Frosch
   * [95168ff] Imported Upstream version 1.7.9
               (Closes: #696235)
   * [a63479e] DFSG cleaned upstream version 1.7.9+dfsg1
   * [cd9367a] Made packaging updates for 1.7.9
   * [b403fd4] Moved config file samples/defaults out of docs (Closes: #709956)
   * [4e45ce0] Implemented Apache 2.4 support,
               with moving conf file to /etc/nagvis (Closes: #669819)
   * [0c87a9f] Fixed handling of config file migration, old configs and purge
   * [5682d4b] Update control, VCS, wrapping and standards version
Checksums-Sha1: 
 45b44aae0898e618b93503843fa8f9ca267ca36c 1760 nagvis_1.7.9+dfsg1-1~exp1.dsc
 1892d0c57579e772237e686e58f7cc93f54b53c6 1417120 nagvis_1.7.9+dfsg1.orig.tar.gz
 9720f811ec0a53f85f193e287aeaa6c81ff3bd56 21432 
nagvis_1.7.9+dfsg1-1~exp1.debian.tar.gz
 df773583fcf6e49523e45f644844d5ae3f334faf 872872 
nagvis_1.7.9+dfsg1-1~exp1_all.deb
 d5f87e88c305bc4cbc27c6b589c2b55ec2182f14 265924 
nagvis-demos_1.7.9+dfsg1-1~exp1_all.deb
Checksums-Sha256: 
 0d5943726ca10e578f8930856e16cedccbfe3fc3ac2d9c6c29466a461ba2ac1e 1760 
nagvis_1.7.9+dfsg1-1~exp1.dsc
 2e110f9b8443d84fb5e1c129a048758896f8aeba1a5fcaa8f6707c5ef762854f 1417120 
nagvis_1.7.9+dfsg1.orig.tar.gz
 1757a6bce50618d05e33a5d3e212c1166a26ea5c0f4a1c4ec890cd322d7d8344 21432 
nagvis_1.7.9+dfsg1-1~exp1.debian.tar.gz
 6d10ffe6206be4ea127fd375fc1cc4f69eda23f22d892ec984f74ec5f1faf275 872872 
nagvis_1.7.9+dfsg1-1~exp1_all.deb
 444ffbd3d5058ba6dc0dd1632dec319496c10f16e37c7b057dae47634d2eeee5 265924 
nagvis-demos_1.7.9+dfsg1-1~exp1_all.deb
Files: 
 d0f66e159ed9f487012edb37b4f90a11 1760 net extra nagvis_1.7.9+dfsg1-1~exp1.dsc
 4dc15c204af3eb3dd313b9f273ece2d2 1417120 net extra 
nagvis_1.7.9+dfsg1.orig.tar.gz
 aabb2db98f57c1fba417bc4220e56f2c 21432 net extra 
nagvis_1.7.9+dfsg1-1~exp1.debian.tar.gz
 4893db30e5618aa7ab5f938069d9fda1 872872 net extra 
nagvis_1.7.9+dfsg1-1~exp1_all.deb
 b9f53b1120ddd5d90ba2f0b2ec1a1d77 265924 net extra 
nagvis-demos_1.7.9+dfsg1-1~exp1_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.15 (GNU/Linux)

iQEcBAEBAgAGBQJSqh6UAAoJEGKVX2ubH1iD3CUH/1I4Rwhudhga2LOFT3amZcWy
7wJi3LAMByHuoYZFt1/oVH5c/WXNGcJoLI/NC5B/PMtHD1R5YIXZWGJVDuy46Gw4
UcHpeXMmummPwWpr6TsfDIXK5LXeIEtHymrqO4UNJnLw+htU+JAg5CiLhUbv993u
C9kMpJw4JWqrKTymhkss28bvBiC5yAV9Jjif4pWUXdBqb7LkI2uCnFZyoBzVQ3iJ
5O+otQt3HovzE3+StQZkA5yqWUo82KiNnOKdyFGTBvQ7/kNr3co23FKmZK/cEtfK
O4012IWo4jFv3BMeujgt37T5wdN+2dfHKUzefPbZpYfKWNQpNcp3/jErMtPLQlQ=
=+jVa
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to