Closed Bug 282510 Opened 20 years ago Closed 20 years ago

error when modifying group

Categories

(Bugzilla :: Administration, task)

2.19.2
x86
All
task
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 2.20

People

(Reporter: cedric.caron, Assigned: glob)

References

Details

Attachments

(1 file, 3 obsolete files)

When modify a group I receive the folowing essor

[Wed Feb 16 23:49:09 2005] editgroups.cgi: Argument "" isn't numeric in 
numeric ne (!=) at C:\Inetpub\Orchid\Bugs\editgroups.cgi line 605. [Wed Feb 16 
23:49:09 2005] editgroups.cgi: Use of uninitialized value in numeric ne (!=) 
at C:\Inetpub\Orchid\Bugs\editgroups.cgi line 619.
where do you see that error? In the apache log file or is it a Bugzilla error
message?
And could you write here which lines it is in editgroups.cgi (605, 619)? A new
version has been uploaded recently (a few hours ago) so I don't know which
version you have.
Summary: erro when modifying group → error when modifying group
The error is displayed at the top of the page in my browser (I am using IIS 
not apache)

line 605: if (($cgi->param("oldgrp-$v") != $grp) && ($v != $gid)) {
line 619: if ($cgi->param("oldbless-$v") != $bless) {

I am using the latest version of the file. I made an update just before 
reporting this bug
confirming and taking
Assignee: administration → bugzilla
this isn't an iis only issue, the error shows up in apache's error log.
OS: Windows XP → All
Attached patch simple fix (obsolete) — Splinter Review
simple fix, map an empty param to 0
Attachment #174536 - Flags: review?
Attachment #174536 - Attachment is obsolete: true
Attachment #174536 - Flags: review?
Attached patch v2 (obsolete) — Splinter Review
updated patch as per bug 277768 comment 19
Attachment #174538 - Flags: review?
Blocks: bz-warnings
Attachment #174545 - Flags: review?
Attachment #174538 - Attachment is obsolete: true
Attachment #174538 - Flags: review?
Comment on attachment 174545 [details] [diff] [review]
add hidden fields with value '0', v3

r=glob
Attachment #174545 - Flags: review? → review+
Flags: approval?
Comment on attachment 174545 [details] [diff] [review]
add hidden fields with value '0', v3

While I can understand how missing the value in the template would cause this,
shouldn't we be validating the data in the CGI instead of letting it throw an
error if it's missing?

This patch looks good to me, but I don't think it's enough.  We should make the
back end do a polite error or recover gracefully if the data doesn't validate
as well.

BTW, IIS is the reason that anything showing up in the error log is a bug.  IIS
sends stderr to the user's browser instead of logging it (which really confuses
things if it comes before the headers).

Does this bug exist in 2.18?  If so, this is a candidate for backporting.
Attachment #174545 - Flags: review-
Flags: approval?
merges the cgi and template patches, as per justdave's comments.

this bug isn't present in 2.18
Attachment #174545 - Attachment is obsolete: true
Attachment #174656 - Flags: review?
Attachment #174656 - Flags: review? → review+
Flags: approval+
Target Milestone: --- → Bugzilla 2.20
Checking in editgroups.cgi;
/cvsroot/mozilla/webtools/bugzilla/editgroups.cgi,v  <--  editgroups.cgi
new revision: 1.48; previous revision: 1.47
done
Checking in template/en/default/admin/groups/edit.html.tmpl;
/cvsroot/mozilla/webtools/bugzilla/template/en/default/admin/groups/edit.html.tmpl,v
 <--  edit.html.tmpl
new revision: 1.5; previous revision: 1.4
done

my first checking :)
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: