Closed Bug 139313 Opened 23 years ago Closed 23 years ago

fatal warning in buglist.cgi

Categories

(Bugzilla :: Query/Bug List, defect)

2.15
x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 2.16

People

(Reporter: cedric.caron, Assigned: cedric.caron)

Details

(Keywords: regression)

Attachments

(1 file)

On my test system the folowing code in buglist.cgi when i select the "my bugs" query if (trim($::FORM{'votes'}) && !grep($_ eq 'votes', @displaycolumns)) { push(@displaycolumns, 'votes'); } generate a warning [Tue Apr 23 00:30:47 2002] C:\Projects\bugzilla\Current\buglist.cgi: Use of uninitialized value in substitution (s///) at globals.pl line 1587. Use of uninitialized value in substitution (s///) at globals.pl line 1588 (#1) [Tue Apr 23 00:30:47 2002] C:\Projects\bugzilla\Current\buglist.cgi: Use of uninitialized value in substitution (s///) at globals.pl line 1588. Content-Disposition: inline; filename=bugs-2002-04-23.html Unfortunatly this warning corupt the HTML generated and the page is not displayed corectly
what's the version number (from 'cvs status globals.pl') on your globals.pl file? There doesn't look like there's anything remotely resembling a possible concatenation ocurring at those line numbers on the tip, so I'm trying to hunt down what line it's on... on the other hand, maybe you have something hacked in globals.pl to make it work on Windows. :-) Can you figure out which lines those are and post some context? In any case, uninitialized value shouldn't be fatal...
doh, you had context, I'm blind. Let me look again.
ok, but I can't find the code you list anywhere in globals.pl. Is this fixed already on the tip?
the code I listed is in line 1230 of buglist.cgi and call the function trim in global.cgi line 1526
Attached patch my patchSplinter Review
This patch is working for me but I am not a perl expert......
Looks pretty trivial to me... but before I stamp an r= on it I'm curious why this isn't defined to begin with....
Keywords: patch, regression, review
Target Milestone: --- → Bugzilla 2.16
if you don't have voting enabled, maybe? The template doesn't imply that you can skip it though. Manually editing bug query lines, bookmarks, or the my bugs link would show this, I suppose. Is this really fatal? Should just adding a check for votes being defined, first, be better, or would that just cause the wame warning later?
I reseted the mybugstemplate param, activated the votes and voted for 1 bug but I still have the problem buglist.cgi already contain others lines like the one I added (line 94, 132) I just added one...
Comment on attachment 82061 [details] [diff] [review] my patch ok, wfm. r=bbaetz x2
Attachment #82061 - Flags: review+
-> patch author....
Assignee: endico → cedric.caron
and checked in
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
QA Contact: matty_is_a_geek → default-qa
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: