Closed
Bug 252190
Opened 21 years ago
Closed 21 years ago
editusers.cgi: Use of uninitialized value on line 178 for Bugzilla 2.18rc1
Categories
(Bugzilla :: Administration, task, P2)
Bugzilla
Administration
Tracking
()
RESOLVED
FIXED
Bugzilla 2.18
People
(Reporter: vincent.botteman, Assigned: bugreport)
References
Details
Attachments
(1 file)
|
1.02 KB,
patch
|
goobix
:
review+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0; .NET CLR 1.1.4322)
Build Identifier:
When editing an user which is not a member of all groups, an error is written
in the Apache log file because the variable $checked is uninitialized at line
178 (print "<INPUT TYPE=HIDDEN NAME=\"oldgroup_$groupid\"
VALUE=\"$checked\">\n";). An error is written for each group of which the user
is not a member. In Bugzilla 2.17.6 the variable $checked contains the
value "0" in case the user is not a member but in 2.18rc1 the variable is NULL.
Reproducible: Always
Steps to Reproduce:
1. Go to the User administration page
2. Search for some normal users (no administrators) or create a new one
3. Edit the user by clicking on the e-mail address
Actual Results:
In the Apache log file appears the error:
editusers.cgi: Use of uninitialized value in concatenation (.) or string at
C:/bugzilla-2.18rc1/editusers.cgi line 178., referer:
http://texas.vdscomputing.net/editusers.cgi?
action=list&matchstr=@vds&matchtype=substr
Expected Results:
In case the user is not a member of a group then the variable $checked should
contain the value "0".
Installation of Bugzilla 2.18rc1 on Windows 2000 according to the "Byron Jones'
Bugzilla Installation Guide for Windows" http://www.glob.com.au/bugzilla .
| Reporter | ||
Comment 1•21 years ago
|
||
If you change the query on line 140 from
"MAX(grant_type = " . GRANT_DIRECT . "), " .
"MAX(grant_type = " . GRANT_DERIVED . "), " .
"MAX(grant_type = " . GRANT_REGEXP . ") " .
to
"COALESCE(MAX(grant_type = " . GRANT_DIRECT . "), '0')," .
"COALESCE(MAX(grant_type = " . GRANT_DERIVED . "), '0')," .
"COALESCE(MAX(grant_type = " . GRANT_REGEXP . "), '0') " .
then I think this problem is resolved.
| Assignee | ||
Comment 2•21 years ago
|
||
so it is...
Assignee: justdave → bugreport
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P2
Target Milestone: --- → Bugzilla 2.18
| Assignee | ||
Comment 3•21 years ago
|
||
While we're at it, we may as well say what we mean
| Assignee | ||
Updated•21 years ago
|
Status: NEW → ASSIGNED
Flags: blocking2.18?
| Assignee | ||
Updated•21 years ago
|
Attachment #153856 -
Flags: review?
Comment 4•21 years ago
|
||
Comment on attachment 153856 [details] [diff] [review]
patch
So we have this problem for $isderived and $isregexp as well.
Attachment #153856 -
Flags: review? → review+
Updated•21 years ago
|
Flags: approval?
Flags: approval2.18?
OS: Windows 2000 → All
Hardware: PC → All
Updated•21 years ago
|
Flags: blocking2.18?
Flags: blocking2.18+
Flags: approval?
Flags: approval2.18?
Flags: approval2.18+
Flags: approval+
| Assignee | ||
Comment 5•21 years ago
|
||
checked in
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Comment 6•20 years ago
|
||
*** Bug 258630 has been marked as a duplicate of this bug. ***
Updated•13 years ago
|
QA Contact: matty_is_a_geek → default-qa
You need to log in
before you can comment on or make changes to this bug.
Description
•