Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 704744 - www-apps/bugzilla-5.0.3-r2: email is not sent (patch)
Summary: www-apps/bugzilla-5.0.3-r2: email is not sent (patch)
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: David Denoncin
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-04 04:47 UTC by James L. Hammons
Modified: 2020-10-26 13:17 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description James L. Hammons 2020-01-04 04:47:15 UTC
Bugzilla acts like it sends email, but never does; a scan of the Apache error_log shows many lines of cgi:errors along the lines of

[cgi:error] [pid 10050:tid 140605116102400] [client 127.0.0.1:32908] AH01215: [Fri Jan  3 21:52:00 2020] process_bug.cgi: Use of uninitialized value $compiled in concatenation (.) or string at /usr/lib64/perl5/vendor_perl/5.30.1/x86_64-linux/Template/Provider.pm line 588.: /var/www/localhost/htdocs/bugzilla/process_bug.cgi, referer: http://localhost/bugzilla/show_bug.cgi?id=87

[cgi:error] [pid 10050:tid 140605116102400] [client 127.0.0.1:32908] AH01215: [Fri Jan  3 21:52:00 2020] process_bug.cgi: compiled template : Insecure dependency in require while running with -T switch at /usr/lib64/perl5/vendor_perl/5.30.1/x86_64-linux/Template/Provider.pm line 587.: /var/www/localhost/htdocs/bugzilla/process_bug.cgi, referer: http://localhost/bugzilla/show_bug.cgi?id=87

I have access to and can see on the email server side that no attempt is made to connect and send a message.  I have been able to reproduce this problem on a second Gentoo installation as well, so I highly doubt it's something unique to the other machine.

Note that this version of Bugzilla will *not* work with perl-5.30 (without a patch to Safe.pm, as detailed here: https://github.com/Perl/perl5/pull/17291/files), so I have to use perl-5.28.

Reproducible: Always

Steps to Reproduce:
1. Install bugzilla + deps (Apache, etc).
2. Configure bugzilla to send mail.
3. Create a bug report and put a known email address (one you have access to) into the CC: field and hit "Save"
Actual Results:  
Screen shows: "Changes submitted to for bug NNN.  Email sent to: <email in CC: field>"

However, no email is ever sent.  Instead, several lines of errors show up in Apache's error_log that look similar to:

[cgi:error] [pid 10050:tid 140605116102400] [client 127.0.0.1:32908] AH01215: [Fri Jan  3 21:52:00 2020] process_bug.cgi: Use of uninitialized value $compiled in concatenation (.) or string at /usr/lib64/perl5/vendor_perl/5.30.1/x86_64-linux/Template/Provider.pm line 588.: /var/www/localhost/htdocs/bugzilla/process_bug.cgi, referer: http://localhost/bugzilla/show_bug.cgi?id=87


Expected Results:  
Connect to the email server and send the email.

# emerge --info
Portage 2.3.84 (python 3.6.8-final-0, default/linux/x86/17.0/hardened, gcc-8.3.0, glibc-2.29-r2, 3.17.2-hardened-r1 i686)
=================================================================
System uname: Linux-3.17.2-hardened-r1-i686-Intel-R-_Core-TM-2_Duo_CPU_E7500_@_2.93GHz-with-gentoo-2.6
KiB Mem:     3061832 total,    587472 free
KiB Swap:    1999996 total,   1993208 free
Timestamp of repository gentoo: Thu, 02 Jan 2020 00:45:01 +0000
Head commit of repository gentoo: b5dba65b9334dfb0306973e0c723a10c50e2243f
sh bash 5.0_p7
ld GNU ld (Gentoo 2.32 p2) 2.32.0
distcc 3.3.2 i686-pc-linux-gnu [disabled]
app-shells/bash:          5.0_p7::gentoo
dev-lang/perl:            5.28.2-r1::gentoo
dev-lang/python:          2.7.16::gentoo, 3.6.8::gentoo, 3.7.3::gentoo
dev-util/cmake:           3.14.5::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.41.2::gentoo
sys-apps/sandbox:         2.17::gentoo
sys-devel/autoconf:       2.69-r4::gentoo
sys-devel/automake:       1.15.1-r1::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.32-r1::gentoo
sys-devel/gcc:            4.9.4-r1::gentoo, 6.4.0-r1::gentoo, 8.3.0-r1::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: 

Local-Portage-Overlay
    location: /usr/local/portage
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=i686 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/apache2-php7.2/ext-active/ /etc/php/apache2-php7.3/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cgi-php7.2/ext-active/ /etc/php/cgi-php7.3/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/php/cli-php7.2/ext-active/ /etc/php/cli-php7.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=i686 -O2 -pipe"
DISTDIR="/opt/filestore/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="acl apache2 bzip2 city crypt cxx fontconfig gd geoip gif hardened iconv jpeg libtirpc mysql ncurses nfsv4 nfsv41 nls nptl openmp pam pcre pic pie png readline sasl seccomp split-usr sqlite ssl ssp threads tiff truetype unicode vhosts x86 xattr xtpax zlib" ABI_X86="32" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_core authn_dbm authn_file authz_core authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias authn_dbd dbd access_compat" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Here's a small piece of the errors seen in error_log, that repeats for several hundred lines (personal IP addresses redacted):

[Tue Dec 31 11:14:57.269502 2019] [cgi:error] [pid 8106:tid 1236257600] [client 192.168.0.84:56328] AH01215: [Tue Dec 31 11:14:57 2019] show_bug.cgi: Use of uninitialized value $compiled in concatenation (.) or string at /usr/lib/perl5/vendor_perl/5.28.2/i686-linux/Template/Provider.pm line 588.: /var/www/localhost/htdocs/bugs/show_bug.cgi, referer: http://<redacted>/bugs/buglist.cgi?component=Core&product=<redacted>&resolution=---
[Tue Dec 31 11:14:57.269722 2019] [cgi:error] [pid 8106:tid 1236257600] [client 192.168.0.84:56328] AH01215: [Tue Dec 31 11:14:57 2019] show_bug.cgi: compiled template : Insecure dependency in require while running with -T switch at /usr/lib/perl5/vendor_perl/5.28.2/i686-linux/Template/Provider.pm line 587.: /var/www/localhost/htdocs/bugs/show_bug.cgi, referer: http://<redacted>/bugs/buglist.cgi?component=Core&product=<redacted>&resolution=---
[Tue Dec 31 11:14:57.269768 2019] [cgi:error] [pid 8106:tid 1236257600] [client 192.168.0.84:56328] AH01215: [Tue Dec 31 11:14:57 2019] show_bug.cgi: : /var/www/localhost/htdocs/bugs/show_bug.cgi, referer: http://<redacted>/bugs/buglist.cgi?component=Core&product=<redacted>&resolution=---
[Tue Dec 31 11:14:57.347643 2019] [cgi:error] [pid 8106:tid 1236257600] [client 192.168.0.84:56328] AH01215: [Tue Dec 31 11:14:57 2019] show_bug.cgi: Use of uninitialized value $compiled in concatenation (.) or string at /usr/lib/perl5/vendor_perl/5.28.2/i686-linux/Template/Provider.pm line 588.: /var/www/localhost/htdocs/bugs/show_bug.cgi, referer: http://<redacted>/bugs/buglist.cgi?component=Core&product=<redacted>&resolution=---
[Tue Dec 31 11:14:57.347854 2019] [cgi:error] [pid 8106:tid 1236257600] [client 192.168.0.84:56328] AH01215: [Tue Dec 31 11:14:57 2019] show_bug.cgi: compiled template : Insecure dependency in require while running with -T switch at /usr/lib/perl5/vendor_perl/5.28.2/i686-linux/Template/Provider.pm line 587.: /var/www/localhost/htdocs/bugs/show_bug.cgi, referer: http://<redacted>/bugs/buglist.cgi?component=Core&product=<redacted>&resolution=---
[Tue Dec 31 11:14:57.347898 2019] [cgi:error] [pid 8106:tid 1236257600] [client 192.168.0.84:56328] AH01215: [Tue Dec 31 11:14:57 2019] show_bug.cgi: : /var/www/localhost/htdocs/bugs/show_bug.cgi, referer: http://<redacted>/bugs/buglist.cgi?component=Core&product=<redacted>&resolution=---
[Tue Dec 31 11:14:57.366953 2019] [cgi:error] [pid 8106:tid 1236257600] [client 192.168.0.84:56328] AH01215: [Tue Dec 31 11:14:57 2019] show_bug.cgi: Use of uninitialized value $compiled in concatenation (.) or string at /usr/lib/perl5/vendor_perl/5.28.2/i686-linux/Template/Provider.pm line 588.: /var/www/localhost/htdocs/bugs/show_bug.cgi, referer: http://<redacted>/bugs/buglist.cgi?component=Core&product=<redacted>&resolution=---
[Tue Dec 31 11:14:57.367156 2019] [cgi:error] [pid 8106:tid 1236257600] [client 192.168.0.84:56328] AH01215: [Tue Dec 31 11:14:57 2019] show_bug.cgi: compiled template : Insecure dependency in require while running with -T switch at /usr/lib/perl5/vendor_perl/5.28.2/i686-linux/Template/Provider.pm line 587.: /var/www/localhost/htdocs/bugs/show_bug.cgi, referer: http://<redacted>/bugs/buglist.cgi?component=Core&product=<redacted>&resolution=---
[Tue Dec 31 11:14:57.367210 2019] [cgi:error] [pid 8106:tid 1236257600] [client 192.168.0.84:56328] AH01215: [Tue Dec 31 11:14:57 2019] show_bug.cgi: : /var/www/localhost/htdocs/bugs/show_bug.cgi, referer: http://<redacted>/bugs/buglist.cgi?component=Core&product=<redacted>&resolution=---
Comment 1 James L. Hammons 2020-01-04 17:53:45 UTC
I feel that I should note that even if you patch perl so that perl-5.30 is usable by bugzilla, it *still* exhibits the behavior noted above (email is not sent, lots of spam in error_log).  The patch *FOR PERL* *DOES NOT* solve the issue.
Comment 2 James L. Hammons 2020-01-10 18:15:58 UTC
I was able to resolve this by upgrading to bugzilla-5.0.4.  However, the problem (the "-T switch" errors in error_log) is still there, and perl still needs to be patched.

Should I open a different bug for the checksetup.pl problem that's solved with the perl patch shown here: https://github.com/Perl/perl5/pull/17291/files ?  Bugzilla-5.0.x works (at least checksetup.pl doesn't barf) with that patch to perl-5.30 (otherwise, you're stuck with perl-5.28).
Comment 3 David Denoncin 2020-06-03 09:29:23 UTC
I had similar error messages in my apache logs with bugzilla-5.0.6 :
[cgi:error] [pid 8520] [client 192.168.1.73:52032] AH01215: [Wed Jun  3 11:15:45 2020] createaccount.cgi: Use of uninitialized value $compiled in concatenation (.) or string at /usr/lib64/perl5/vendor_perl/5.30.1/x86_64-linux/Template/Provider.pm line 588.: /var/www/localhost/htdocs/bugzilla/createaccount.cgi
[cgi:error] [pid 8520] [client 192.168.1.73:52032] AH01215: [Wed Jun  3 11:15:45 2020] createaccount.cgi: compiled template : Insecure dependency in require while running with -T switch at /usr/lib64/perl5/vendor_perl/5.30.1/x86_64-linux/Template/Provider.pm line 587.: /var/www/localhost/htdocs/bugzilla/createaccount.cgi

It was solved for me by switching on smtp_ssl in the email configuration page.

By the way, I did not need to patch Perl 5.30, following the wiki worked (https://wiki.gentoo.org/wiki/Bugzilla).
Comment 4 David Denoncin 2020-09-08 07:24:55 UTC
Does this still happen with newest bugzilla?
Comment 5 David Denoncin 2020-10-09 10:28:19 UTC
No response in two months, closing.
Comment 6 James L. Hammons 2020-10-19 16:35:18 UTC
Sorry for not responding in a timely manner; I haven't tried the latest in portage and am a bit hesitant to do so, as I rely on my installation working consistently.  I'll have to spin up a VM to test this.
Comment 7 David Denoncin 2020-10-26 13:17:29 UTC
No problem. I'm testing my current install with a more modern init script (see https://bugs.gentoo.org/749924), and discovered that mail would not be sent due to removing the deprecated dev-perl/Net-SMTP-SSL. Adding the suggested replacement dev-perl/IO-Socket-SSL solves this issue, and I submitted an update to this ebuild reflecting that change (see https://github.com/gentoo/gentoo/pull/18040)

Sending email works fine on my current installation.

Feel free to re-open this bug if needed.