Bug#918027: rspamd: Web UI: d3.arc is not a function

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug#918027: rspamd: Web UI: d3.arc is not a function

Dominik George-7
Package: rspamd
Version: 1.8.1-2+b1
Severity: normal

The web UI is missing graphs in a default isntallation from Debian buster.
Firefox 64 gives this error:

TypeError: d3.arc is not a function[Learn More] d3pie.min.js:9:19908

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

Kernel: Linux 4.19.0-1-amd64 (SMP w/2 CPU cores)
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)
LSM: AppArmor: enabled

Versions of packages rspamd depends on:
ii  adduser          3.118
ii  ca-certificates  20170717
ii  libc6            2.28-2
ii  libevent-2.1-6   2.1.8-stable-4
ii  libglib2.0-0     2.58.1-2
ii  libicu63         63.1-5
ii  libjemalloc1     3.6.0-11
ii  libjs-bootstrap  3.3.7+dfsg-2
ii  libjs-d3         3.5.17-2
ii  libjs-jquery     3.2.1-1
ii  libjs-requirejs  2.3.2-1
ii  libluajit-5.1-2  2.1.0~beta3+dfsg-5.1
ii  libmagic1        1:5.34-2
ii  libpcre2-8-0     10.32-3
ii  libsqlite3-0     3.26.0+fossilbc891ac6b-1
ii  libssl1.1        1.1.1a-1
ii  libunwind8       1.2.1-8
ii  lsb-base         10.2018112800
ii  zlib1g           1:1.2.11.dfsg-1

rspamd recommends no packages.

rspamd suggests no packages.

-- no debconf information

Reply | Threaded
Open this post in threaded view
|

Bug#918027: needs d3 v5

Alexandre Rossi
upstream uses d3 v5 and d3.arc appeared in d3 v4. So the webui seems
to require libjs-d3 >=4 or perhaps libjs-d3 >=5.
Then there's #839961 (only d3 v3 is in Debian).

downloading d3 latest and:
$ sudo cp d3.min.js /usr/share/rspamd/www/js/lib/d3.min.js
fixes the problem.

Also the current packaging does not use symlinks for the d3
dependency, because the webui does not seem to support symlinks.
Instead, it copies the js files at install time. This means that
updates of js deps would not be taken into account when updated. I
suggest using upstream files instead which is not ideal but means used
versions are reproductible and not function of when the package was
installed.

Alex