Closed Bug 545695 Opened 14 years ago Closed 14 years ago

show_bug.cgi: Use of uninitialized value

Categories

(Bugzilla :: Creating/Changing Bugs, defect)

3.4.4
defect
Not set
trivial

Tracking

()

RESOLVED FIXED
Bugzilla 3.4

People

(Reporter: k0u4dz202, Assigned: reed)

References

Details

(Keywords: regression)

Attachments

(1 file, 1 obsolete file)

User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.7) Gecko/20100106 Ubuntu/9.10 (karmic) Firefox/3.5.7
Build Identifier: 3.4.4

Sometimes this is printed to the error log:

show_bug.cgi: Use of uninitialized value in numeric eq (==) at Bugzilla/User.pm line 712

Looks like $warn isn't always passed in when called from edit.html.tmpl, so this line in User.pm causes the error message:

    return 0 unless $warn == THROW_ERROR;

Reproducible: Always
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
Actually, this isn't a dupe. It seems this bug only affects Bugzilla 3.4.

template/en/default/bug/edit.html.tmpl:377:
         [% IF NOT user.can_enter_product(bug.product) %]
Assignee: query-and-buglist → create-and-change
Status: RESOLVED → UNCONFIRMED
Component: Query/Bug List → Creating/Changing Bugs
OS: Linux → All
Hardware: x86 → All
Resolution: DUPLICATE → ---
This is the same issue. The problem reported here was due to bug 322848, which landed in Bugzilla 3.0. You don't see this bug in 3.5.3 because I fixed it in bug 526271. I simply decided to not backport it to 3.4.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago14 years ago
Resolution: --- → DUPLICATE
Attached patch patch - v1 (untested) (obsolete) — Splinter Review
Something like this? Not sure if we actually want to throw an error, but it seems like we would...
Assignee: create-and-change → reed
Attachment #426539 - Flags: review?(LpSolit)
Attachment #426539 - Flags: review?(LpSolit) → review-
Comment on attachment 426539 [details] [diff] [review]
patch - v1 (untested)

No, see my previous comment.
Did you read comment #2? This only affects 3.4. Bug 526271 "fixes" this problem, but it's not for the same reason at all.
Status: RESOLVED → UNCONFIRMED
Resolution: DUPLICATE → ---
Target Milestone: --- → Bugzilla 3.4
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: regression
Just fix Bugzilla/User.pm.
Attachment #426539 - Attachment is obsolete: true
Attachment #426543 - Flags: review?(LpSolit)
Status: NEW → ASSIGNED
Attachment #426543 - Flags: review?(LpSolit) → review+
Flags: approval3.4+
Version: unspecified → 3.4.4
Depends on: 507389
Committing to: bzr+ssh://bzr.mozilla.org/bugzilla/3.4/                         
modified Bugzilla/User.pm
Committed revision 6724.
Status: ASSIGNED → RESOLVED
Closed: 14 years ago14 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: