Bug 1208776

Summary: sa-learn reports Use of uninitialized value $type in numeric eq (==) at /usr/share/perl5/vendor_perl/Mail/SpamAssassin/Conf/Parser.pm
Product: [Fedora] Fedora Reporter: Jakub Jelen <jjelen>
Component: spamassassinAssignee: Kevin Fenzi <kevin>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: jjelen, jorti, kevin, nb, pb, plautrba, qe-baseos-daemons, wtogami
Target Milestone: ---Keywords: Patch
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: spamassassin-3.4.0-13.fc22 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1208362 Environment:
Last Closed: 2015-04-21 19:21:37 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
proposed patch none

Description Jakub Jelen 2015-04-03 07:12:31 UTC
Created attachment 1010505 [details]
proposed patch

+++ This bug was initially created as a clone of Bug #1208362 +++

Description of problem:
since last spamassassin update sa-learn claim about

Use of uninitialized value $type in numeric eq (==) at /usr/share/perl5/vendor_perl/Mail/SpamAssassin/Conf/Parser.pm


Version-Release number of selected component (if applicable):
spamassassin-3.4.0-1.el7.x86_64

How reproducible:
on each sa-learn run in case of Razor2 is activated

Actual results:
Use of uninitialized value $type in numeric eq (==) at /usr/share/perl5/vendor_perl/Mail/SpamAssassin/Conf/Parser.pm line 668.
Use of uninitialized value $type in numeric eq (==) at /usr/share/perl5/vendor_perl/Mail/SpamAssassin/Conf/Parser.pm line 671.
Use of uninitialized value $type in numeric eq (==) at /usr/share/perl5/vendor_perl/Mail/SpamAssassin/Conf/Parser.pm line 674.
Use of uninitialized value $type in numeric eq (==) at /usr/share/perl5/vendor_perl/Mail/SpamAssassin/Conf/Parser.pm line 677.
Use of uninitialized value $type in numeric eq (==) at /usr/share/perl5/vendor_perl/Mail/SpamAssassin/Conf/Parser.pm line 680.
Use of uninitialized value $type in numeric eq (==) at /usr/share/perl5/vendor_perl/Mail/SpamAssassin/Conf/Parser.pm line 683.
Use of uninitialized value $type in numeric eq (==) at /usr/share/perl5/vendor_perl/Mail/SpamAssassin/Conf/Parser.pm line 686.
Use of uninitialized value $type in numeric eq (==) at /usr/share/perl5/vendor_perl/Mail/SpamAssassin/Conf/Parser.pm line 689.
Use of uninitialized value $type in numeric eq (==) at /usr/share/perl5/vendor_perl/Mail/SpamAssassin/Conf/Parser.pm line 692.
Use of uninitialized value $type in numeric eq (==) at /usr/share/perl5/vendor_perl/Mail/SpamAssassin/Conf/Parser.pm line 695.


Expected results:
No such messages

Additional info:
Issue is already known somehow:

http://www.fws.net/blog/template_permalink.asp?id=203

Workaround would be fixing the typo in

/usr/local/share/perl/5.10.1/Mail/SpamAssassin/Plugin/Razor2.pm :

On line 118, change:

type => $Mail::SpamAssassin::Conf::CONF_TYPE_DURATIION,

to:

type => $Mail::SpamAssassin::Conf::CONF_TYPE_DURATION,

--- Additional comment from Jakub Jelen on 2015-04-03 09:04:35 CEST ---

Thank you for reporting. You are right.
But unfortunately, spamassassin is not on ACL for RHEL-7.2 so I can't guarantee that it will be fixed in next release. If it is significant issue for you, I recommend to raise a ticket through your regular Red Hat support channel to receive proper attention.

Attached patch for current spamassassin version.

Comment 1 Fedora Update System 2015-04-03 17:20:24 UTC
spamassassin-3.4.0-13.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/spamassassin-3.4.0-13.fc22

Comment 2 Fedora Update System 2015-04-03 17:27:06 UTC
spamassassin-3.4.0-13.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/spamassassin-3.4.0-13.fc21

Comment 3 Fedora Update System 2015-04-04 16:31:28 UTC
Package spamassassin-3.4.0-13.fc22:
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing spamassassin-3.4.0-13.fc22'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-5518/spamassassin-3.4.0-13.fc22
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2015-04-21 19:21:37 UTC
spamassassin-3.4.0-13.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.