Closed Bug 333031 Opened 19 years ago Closed 19 years ago

Uninitialized value when entering a new bug and an alias is given

Categories

(Bugzilla :: Creating/Changing Bugs, defect)

2.22
defect
Not set
minor

Tracking

()

RESOLVED FIXED
Bugzilla 2.20

People

(Reporter: LpSolit, Assigned: LpSolit)

References

Details

Attachments

(1 file)

post_bug.cgi: Use of uninitialized value in concatenation (.) or string at Bugzilla/Util.pm line 73 This is because Bugzilla::Bug::ValidateBugAlias($alias, $curr_id) contains the line: if (detaint_natural($curr_id)) When creating a new bug, $curr_id is undefined (the bug has no ID yet) and so it tries to detaint an undefined value.
Attached patch patch, v1Splinter Review
Attachment #217456 - Flags: review?(wicked+bz)
Note that this message appears only when an alias is specified when creating a new bug. If you give none, no warning is displayed.
Status: NEW → ASSIGNED
Summary: Uninitialized value when entering a new bug with no alias given → Uninitialized value when entering a new bug and an alias is given
Comment on attachment 217456 [details] [diff] [review] patch, v1 Yep, this fixes the error.
Attachment #217456 - Flags: review?(wicked+bz) → review+
Patch seems to apply to 2.20 branch too. Even thought the default enter bug template doesn't include an alias field, post_bug.cgi contains code to handle a specified alias parameter so fixing this is good thing to do. People can specify the alias parameter manually or even change template to contain the alias field.
Flags: approval?
Flags: approval2.22?
Flags: approval2.20?
Target Milestone: Bugzilla 2.22 → Bugzilla 2.20
Flags: approval?
Flags: approval2.22?
Flags: approval2.22+
Flags: approval2.20?
Flags: approval2.20+
Flags: approval+
tip: Checking in Bugzilla/Bug.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/Bug.pm,v <-- Bug.pm new revision: 1.116; previous revision: 1.115 done 2.22rc1: Checking in Bugzilla/Bug.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/Bug.pm,v <-- Bug.pm new revision: 1.104.2.2; previous revision: 1.104.2.1 done 2.20.1: Checking in Bugzilla/Bug.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/Bug.pm,v <-- Bug.pm new revision: 1.81.2.5; previous revision: 1.81.2.4 done
Status: ASSIGNED → RESOLVED
Closed: 19 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: