Closed Bug 526271 Opened 16 years ago Closed 16 years ago

Uninitialized value in can_enter_product() due to a missing argument

Categories

(Bugzilla :: Query/Bug List, defect)

defect
Not set
minor

Tracking

()

RESOLVED FIXED
Bugzilla 3.6

People

(Reporter: LpSolit, Assigned: LpSolit)

References

Details

(Keywords: regression)

Attachments

(1 file)

buglist.cgi: Use of uninitialized value $warn in numeric eq (==) at Bugzilla/User.pm line 719 Bug 524234 defined one_product in some cases only, but call can_enter_product() unconditionally, throwing the error above. We should fix two things: 1) buglist.cgi at line 1104 to only call can_enter_product() when one_product is defined, and 2) User::can_enter_product() to revert the changes included in bug 322848 (i.e. check for |if $warn| instead of |if $warn == THROW_ERROR|) or to set $warn ||= 0.
Attached patch patch, v1Splinter Review
Assignee: query-and-buglist → LpSolit
Status: NEW → ASSIGNED
Attachment #409972 - Flags: review?(ghendricks)
Attachment #409972 - Flags: review?(ghendricks) → review+
Flags: approval+
Checking in buglist.cgi; /cvsroot/mozilla/webtools/bugzilla/buglist.cgi,v <-- buglist.cgi new revision: 1.407; previous revision: 1.406 done Checking in Bugzilla/User.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/User.pm,v <-- User.pm new revision: 1.195; previous revision: 1.194 done
Status: ASSIGNED → RESOLVED
Closed: 16 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: