Package: mailgraph
Version: 1.14-17
Severity: important

Dear Maintainer,

On a new (configured) installation, visiting the page results in this error in 
the apache error log and broken images
   ERROR: Could not save png to 
'/var/lib/mailgraph/,mailgraph/mailgraph_3_grey.png'
   End of script output before headers: mailgraph.cgi, referer: 
http://.../mailgraph/mailgraph.cgi

Fix:
  mkdir /var/lib/mailgraph/,mailgraph/
  chown www-data:www-data /var/lib/mailgraph/,mailgraph/

the mkdir $tmp_dir/$uri/ on line 252 of mailgraph.cgi won't work due to lack of 
permissions on /var/lib/mailgraph to the www-data user.

Of course, ideally the files should just go into /var/lib/mailgraph, so this 
might point to either:
 - a bug in the application which could get it to use /var/lib/mailgraph
 - simply a missing directory which should be created and permissions to 
www-data assigned on install
 - permissions to www-data on /var/lib/mailgraph to create its sub-folder
 - a documentation error that such a directory must be created (and how to 
derrive it from the path)



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

Kernel: Linux 4.19.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_CA:en (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages mailgraph depends on:
ii  debconf [debconf-2.0]  1.5.71
ii  libfile-tail-perl      1.3-5
ii  librrds-perl           1.7.1-1
ii  lsb-base               10.2019031300
ii  perl                   5.28.1-6
ii  ucf                    3.0038+nmu1

Versions of packages mailgraph recommends:
ii  apache2 [httpd]                 2.4.38-3
ii  postfix [mail-transport-agent]  3.4.5-1

mailgraph suggests no packages.

-- debconf information:
* mailgraph/mail_log: /var/log/mail.log
* mailgraph/start_on_boot: true
* mailgraph/ignore_localhost: true

Reply via email to