Closed Bug 289729 Opened 20 years ago Closed 20 years ago

fix for 3 "uninitialized value" messages

Categories

(Bugzilla :: Bugzilla-General, defect)

2.19.2
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 2.20

People

(Reporter: LpSolit, Assigned: LpSolit)

References

Details

Attachments

(1 file)

1) process_bug.cgi: Use of uninitialized value in string ne at Bugzilla/Flag.pm
line 283.

if ($requestee_email ne $flag->{'requestee'}->{'email'})


2) userprefs.cgi: Use of uninitialized value in numeric eq (==) at
/var/www/html/cvsbugzilla/userprefs.cgi line 235.

if (1 == $cgi->param("email-$rel-$event"))


Patch coming....
Status: NEW → ASSIGNED
Flags: blocking2.20?
Target Milestone: --- → Bugzilla 2.20
Blocks: bz-warnings
3) process_bug.cgi: Use of uninitialized value in string ne at Bugzilla/Flag.pm
line 572.

my $requestee_changed = ($status eq "?" &&
                         $flag->{'type'}->{'is_requesteeble'} &&
                         $old_requestee ne $requestee_email);
Summary: fix for 2 "uninitialized value" messages → fix for 3 "uninitialized value" messages
Attached patch patch, v1Splinter Review
This patch mainly checks that variables are defined before using them.

Note also that I replaced $flag->{'requestee'}->{'email'} by
$flag->{'requestee'}->login as this is the way User::match_field() and
Flag::modifiy() work.
Attachment #180334 - Flags: review?(wurblzap)
Attachment #180334 - Flags: review?(wurblzap) → review+
Flags: approval?
Flags: blocking2.20?
Flags: blocking2.20+
Flags: approval?
Flags: approval+
Checking in userprefs.cgi;
/cvsroot/mozilla/webtools/bugzilla/userprefs.cgi,v  <--  userprefs.cgi
new revision: 1.74; previous revision: 1.73
done
Checking in Bugzilla/Flag.pm;
/cvsroot/mozilla/webtools/bugzilla/Bugzilla/Flag.pm,v  <--  Flag.pm
new revision: 1.36; previous revision: 1.35
done
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: