Closed Bug 571817 Opened 15 years ago Closed 15 years ago

Invalid parameter passed to Bugzilla when Editing Groups on IIS

Categories

(Bugzilla :: Administration, task)

All
Windows 2000
task
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 521416

People

(Reporter: Steve_P, Unassigned)

Details

Attachments

(1 file, 2 obsolete files)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.1.9) Gecko/20100315 Firefox/3.5.9 Build Identifier: 3.6 Invalid parameter passed to Bugzilla::Group::new_from_list: It must be numeric. WIn 2k + IIS Reproducible: Always Steps to Reproduce: 1.create a group 2.goto edit the group 3.update Actual Results: Invalid parameter passed to Bugzilla::Group::new_from_list: It must be numeric.
This should be ok for all DB types.
Attachment #450984 - Flags: review?(LpSolit)
Version: unspecified → 3.6
Comment on attachment 450984 [details] [diff] [review] Small edit to fix the error when updating Groups The code that I'm looking at already has this fix, in 3.6. Perhaps this bug is a dup?
Attachment #450984 - Flags: review?(LpSolit) → review-
Yeah, this code is not the one from 3.6, see bug 354627. This has been fixed in 3.2 already.
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → INVALID
Attached patch Corrected Diff (obsolete) — Splinter Review
The BUG is still valid. I just had the diff the wrong way around. Do people not test these bugs?
Attachment #450984 - Attachment is obsolete: true
Comment on attachment 451107 [details] [diff] [review] Corrected Diff A Fixed Diff
Attachment #451107 - Flags: review?(mkanat)
Comment on attachment 451107 [details] [diff] [review] Corrected Diff This crashes Bugzilla when using Apache.
Attachment #451107 - Attachment is patch: true
Attachment #451107 - Flags: review?(mkanat) → review-
Okay, so there actually is some sort of bug--it seems to be a general problem with IIS passing us undef in situations where I don't understand why we get undef.
Status: RESOLVED → UNCONFIRMED
Resolution: INVALID → ---
Steve: Could you get me the output of this following command on the page that you POST'ed to? use Data::Dumper; die Dumper(scalar Bugzilla->cgi->Vars);
Summary: Invalid parameter passed to Bugzilla when Editing Groups → Invalid parameter passed to Bugzilla when Editing Groups on IIS
Severity: major → normal
Hardware: x86 → All
Attached patch Fix to Object.pmSplinter Review
On the chance new_from_list is passed a null element it should return a corrected array instead of raising an error.
Attachment #451107 - Attachment is obsolete: true
Comment on attachment 451118 [details] [diff] [review] Fix to Object.pm skips any null elements
Attachment #451118 - Flags: review?(LpSolit)
glob: Do you have any clue why IIS is passing us undef instead of an empty array for this situation?
Attachment #451118 - Flags: review?(LpSolit) → review?(mkanat)
It's not just this situation. There's other areas in Bugzilla where we get undef responses too.
(In reply to comment #13) > It's not just this situation. There's other areas in Bugzilla where we get > undef responses too. Which is why your patch is only a workaround, not a real fix. Probably Bugzilla/CGI.pm needs to be fixed, in that case.
Here's the dump you asked for. $VAR1 = { '' => undef, 'icon_url' => '', 'name' => 'Test', 'group_id' => '16', 'regexp' => '', 'desc' => 'tester1', 'isactive' => '1', 'action' => 'postchanges', 'token' => 'zVuthJK1kk' };
Should be fixed by the patch in bug 521416.
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago15 years ago
Resolution: --- → DUPLICATE
Attachment #451118 - Flags: review?(mkanat)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: