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)
Tracking
()
RESOLVED
FIXED
Bugzilla 2.20
People
(Reporter: LpSolit, Assigned: LpSolit)
References
Details
Attachments
(1 file)
625 bytes,
patch
|
wicked
:
review+
|
Details | Diff | Splinter Review |
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.
Assignee | ||
Comment 1•19 years ago
|
||
Attachment #217456 -
Flags: review?(wicked+bz)
Assignee | ||
Comment 2•19 years ago
|
||
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 3•19 years ago
|
||
Comment on attachment 217456 [details] [diff] [review]
patch, v1
Yep, this fixes the error.
Attachment #217456 -
Flags: review?(wicked+bz) → review+
Comment 4•19 years ago
|
||
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
Updated•19 years ago
|
Flags: approval?
Flags: approval2.22?
Flags: approval2.22+
Flags: approval2.20?
Flags: approval2.20+
Flags: approval+
Assignee | ||
Comment 5•19 years ago
|
||
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.
Description
•