[Pkg-cacti-maint] Bug#871496: cacti graph search box reloads, and clears searchbox on any keypress.

Ronny Aasen ronny at aasen.cx
Tue Aug 8 14:06:21 UTC 2017


Package: cacti
Version: 1.1.16+ds1-1
Severity: normal

Dear Maintainer,

On the graphs page when trying to use the right hand side search box. the search box clears and reloads when I enter the first letter. This happens in all browsers I have tried. 

I tracked it down to line 1216 in /usr/share/cacti/site/include/layout.js 

$('#filter, #rfilter').bind('keypress', 'ctrl+shift+x', function() {
	$('#filter, #rfilter').val('').css('text-align', 'left').submit(); });


It looks to me like the bind keypress activates the ctrl+shift+x clear function on any keypress.  If I comment out the line 1216 it works for me. This ofcourse disable the function, so there probably needs to be a proper fix.  


-- System Information:
Debian Release: 9.1
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-3-amd64 (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages cacti depends on:
ii  dbconfig-common                           2.0.8
ii  dbconfig-mysql                            2.0.8
ii  debconf [debconf-2.0]                     1.5.61
ii  fonts-dejavu-core                         2.37-1
ii  fonts-dejavu-extra                        2.37-1
ii  fonts-font-awesome                        4.7.0~dfsg-1
ii  javascript-common                         11
ii  libapache2-mod-php                        1:7.0+49
ii  libapache2-mod-php7.0 [libapache2-mod-ph  7.0.19-1
ii  libjs-c3                                  0.4.11+dfsg-2
ii  libjs-chartjs                             1.0.2-1
ii  libjs-d3                                  3.5.17-2
ii  libjs-jquery                              3.1.1-2
ii  libjs-jquery-colorpicker                  1.2.8-1
ii  libjs-jquery-cookie                       11-3
ii  libjs-jquery-hotkeys                      0~20130707+git2d51e3a9+dfsg-2
ii  libjs-jquery-jstree                       3.3.3+dfsg1-1
ii  libjs-jquery-metadata                     11-3
ii  libjs-jquery-tablesorter                  1:2.28.15+dfsg1-1
ii  libjs-jquery-timepicker                   1.2-1
ii  libjs-jquery-ui                           1.12.1+dfsg-4
ii  libjs-jquery-ui-theme-smoothness          1.12.1+dfsg-1
ii  libjs-jquery-ui-theme-south-street        1.12.1+dfsg-1
ii  libjs-jquery-ui-theme-ui-darkness         1.12.1+dfsg-1
ii  libjs-jquery-ui-touch-punch               0.0~git20141218.2.4bc0091+dfsg1-1
ii  libphp-phpmailer                          5.2.14+dfsg-2.3
ii  perl                                      5.24.1-3+deb9u1
ii  php                                       1:7.0+49
ii  php-gd                                    1:7.0+49
ii  php-ldap                                  1:7.0+49
ii  php-mbstring                              1:7.0+49
ii  php-mysql                                 1:7.0+49
ii  php-php-gettext                           1.0.12-0.1
ii  php-phpseclib                             2.0.4-1
ii  php-snmp                                  1:7.0+49
ii  php-twig                                  1.24.0-2
ii  php-xml                                   1:7.0+49
ii  php7.0 [php]                              7.0.19-1
ii  php7.0-cli [php-cli]                      7.0.19-1
ii  php7.0-gd [php-gd]                        7.0.19-1
ii  php7.0-json [php-json]                    7.0.19-1
ii  php7.0-ldap [php-ldap]                    7.0.19-1
ii  php7.0-mbstring [php-mbstring]            7.0.19-1
ii  php7.0-mysql [php-mysqlnd]                7.0.19-1
ii  php7.0-snmp [php-snmp]                    7.0.19-1
ii  php7.0-xml [php-xml]                      7.0.19-1
ii  rrdtool                                   1.6.0-1+b2
ii  snmp                                      5.7.3+dfsg-1.7
ii  ucf                                       3.0036

Versions of packages cacti recommends:
ii  apache2 [httpd]                             2.4.25-3+deb9u2
ii  default-mysql-server                        1.0.2
ii  iputils-ping                                3:20161105-1
ii  logrotate                                   3.11.0-0.1
ii  mariadb-server-10.1 [virtual-mysql-server]  10.1.23-9+deb9u1
ii  php-gmp                                     1:7.0+49
ii  php7.0-gmp [php-gmp]                        7.0.19-1

Versions of packages cacti suggests:
pn  cacti-spine  <none>
pn  moreutils    <none>
pn  snmpd        <none>

-- debconf information excluded



More information about the Pkg-cacti-maint mailing list