Bug 1297589

Summary: Whine cron jobs cause lots of errors
Product: [Community] Bugzilla Reporter: Will Thames <wthames>
Component: Email NotificationsAssignee: PnT DevOps Devs <hss-ied-bugs>
Status: CLOSED NEXTRELEASE QA Contact: tools-bugs <tools-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.4CC: huiwang, jmcdonal, mtahir, qgong
Target Milestone: 5.0   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-04 01:34:18 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:

Description Will Thames 2016-01-11 23:34:19 UTC
Description of problem:

Too many errors from whine cron job

Actual result:

A typical email to bugzilla-error-list from the whine cron job contains

Subject: Cron <bz_whine@bzwebserver> cd /var/www/html/bugzilla; umask 0007; perl -T ./whine.pl 2>&1

Use of uninitialized value $value in string eq at Bugzilla/Search.pm line 1968.
Use of uninitialized value $field in hash element at Bugzilla/Search.pm line 1950.
Use of uninitialized value $value in string eq at Bugzilla/Search.pm line 1968.
Use of uninitialized value $operator in pattern match (m//) at Bugzilla/Search.pm line 1968.
Use of uninitialized value $value in string eq at Bugzilla/Search.pm line 1968.
Use of uninitialized value $value in string eq at Bugzilla/Search.pm line 1968.
Use of uninitialized value $value in string eq at Bugzilla/Search.pm line 1968.
Use of uninitialized value $field in hash element at Bugzilla/Search.pm line 1950.
Use of uninitialized value $value in string eq at Bugzilla/Search.pm line 1968.
Use of uninitialized value $operator in pattern match (m//) at Bugzilla/Search.pm line 1968.
Use of uninitialized value $value in string eq at Bugzilla/Search.pm line 1968.
Use of uninitialized value $value in string eq at Bugzilla/Search.pm line 1968.
Use of uninitialized value $value in string eq at Bugzilla/Search.pm line 1968.
Use of uninitialized value $value in string eq at Bugzilla/Search.pm line 1968.
Use of uninitialized value $operator in pattern match (m//) at Bugzilla/Search.pm line 1968.

There may be fewer or more lines than this (if there are no lines, no email is sent). 

Expected result:

No errors occur and so no emails are sent.

Comment 1 Jeff Fearn 🐞 2016-04-06 03:28:29 UTC
This appears to have been fixed upstream for 5.0.

Comment 2 Rony Gong 🔥 2016-04-21 06:42:16 UTC
QA environment with version(5.0.2-rh4, DB: pgsql)
Result: Pass
Can't grep out this kind of error in 5.0