Closed
Bug 282510
Opened 20 years ago
Closed 20 years ago
error when modifying group
Categories
(Bugzilla :: Administration, task)
Tracking
()
RESOLVED
FIXED
Bugzilla 2.20
People
(Reporter: cedric.caron, Assigned: glob)
References
Details
Attachments
(1 file, 3 obsolete files)
|
1.98 KB,
patch
|
justdave
:
review+
|
Details | Diff | Splinter Review |
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.
Comment 1•20 years ago
|
||
where do you see that error? In the apache log file or is it a Bugzilla error message?
Comment 2•20 years ago
|
||
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.
| Reporter | ||
Updated•20 years ago
|
Summary: erro when modifying group → error when modifying group
| Reporter | ||
Comment 3•20 years ago
|
||
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 bugthis isn't an iis only issue, the error shows up in apache's error log.
OS: Windows XP → All
simple fix, map an empty param to 0
Attachment #174536 -
Flags: review?
Attachment #174536 -
Attachment is obsolete: true
Attachment #174536 -
Flags: review?
updated patch as per bug 277768 comment 19
Attachment #174538 -
Flags: review?
Updated•20 years ago
|
Blocks: bz-warnings
Comment 8•20 years ago
|
||
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+
Comment 10•20 years ago
|
||
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-
Updated•20 years ago
|
Flags: approval?
| Assignee | ||
Comment 11•20 years ago
|
||
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?
Updated•20 years ago
|
Attachment #174656 -
Flags: review? → review+
Updated•20 years ago
|
Flags: approval+
Target Milestone: --- → Bugzilla 2.20
| Assignee | ||
Comment 12•20 years ago
|
||
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.
Description
•