Open
Bug 1230972
Opened 9 years ago
Updated 9 years ago
Uninitialized value $user_id when Bugzilla_login is missing
Categories
(Bugzilla :: WebService, defect)
Tracking
()
UNCONFIRMED
People
(Reporter: alex, Unassigned)
Details
Attachments
(1 file)
494 bytes,
patch
|
Details | Diff | Splinter Review |
Since upgrading to 5.0.1 our server error log is throwing up a number of these lines:
jsonrpc.cgi: Use of uninitialized value $user_id in numeric ne (!=) at Bugzilla/Auth/Login/Cookie.pm line 61., referer: <removed>/show_bug.cgi?id=<removed>
I am not sure why/how this occurs, but a quick inspection of the code shows $user_id can fall through uninitialised if there is no Bugzilla_logincookie.
A simple subsequent check for !defined $userid will avoid the error in the logs but provide the same behaviour
Updated•9 years ago
|
Assignee: general → ui
Severity: normal → trivial
Component: Bugzilla-General → User Interface
Summary: jsonrpc.cgi: Use of uninitialized value $user_id in numeric ne → Uninitialized value $user_id when Bugzilla_login is missing
Comment 1•9 years ago
|
||
Comment on attachment 8696499 [details] [diff] [review]
Patch to check for !defined $user_id prior to use of value
>+ || !defined $user_id
!$user_id would do it too as an empty $user_id and 0 are both illegal.
Updated•9 years ago
|
Assignee: ui → webservice
Component: User Interface → WebService
You need to log in
before you can comment on or make changes to this bug.
Description
•