Closed Bug 286205 Opened 20 years ago Closed 20 years ago

Bugzilla Header shown twice if I try to add user without specifying the password

Categories

(Bugzilla :: Administration, task)

2.17.6
task
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 2.18

People

(Reporter: rajesh.venkatesan, Assigned: Wurblzap)

Details

(Whiteboard: [ready for 2.18.2] [does not affect 2.19.3+])

Attachments

(1 file, 1 obsolete file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050225 Firefox/1.0.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050225 Firefox/1.0.1

http://bugzilla_url/editusers.cgi?action=add

try to add a user without specifying password.

Bugzilla header is shown twice.

Reproducible: Always
Summary: Bugizlla Header shown twice if I try to add user without specifying the password → Bugzilla Header shown twice if I try to add user without specifying the password
I cannot reproduce on current tip. Which version are you using?
Reproducible in both Version 2.17.6/Version 2.18 
Version: unspecified → 2.17.6
I can reproduce this in 2.19.2 also.
This has been fixed on the trunk by bug 119485. I can reproduce on the 2.18
branch. Looks like a $vars->{'header_done'} or equivalent is not set correctly.
Marc, are you interested in fixing this bug? It should be trivial.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows XP → All
Hardware: PC → All
Whiteboard: [does not affect 2.19.3+]
Target Milestone: --- → Bugzilla 2.18
Attached patch Branch patch (obsolete) — Splinter Review
Removing dead code from callsites, too.
Assignee: administration → wurblzap
Status: NEW → ASSIGNED
Attachment #186901 - Flags: review?
Comment on attachment 186901 [details] [diff] [review]
Branch patch

>     if (length($password) < 3) {
>-        ThrowUserError("password_too_short");
>+        ThrowUserError("password_too_short", $main::vars);
>     } elsif (length($password) > 16) {
>-        ThrowUserError("password_too_long");
>+        ThrowUserError("password_too_long", $main::vars);
>     } elsif ((defined $matchpassword) && ($password ne $matchpassword)) {
>-        ThrowUserError("passwords_dont_match");
>+        ThrowUserError("passwords_dont_match", $main::vars);

Please replace $main::vars by $::vars and carry forward my r+.

For the record, this "hack" is necessary and specific to 2.18 as editusers.cgi
has not been templatized yet.
Attachment #186901 - Flags: review? → review+
Attached patch Branch patchSplinter Review
Using $::vars instead of $main::vars. Moving r+ forward.
Attachment #186901 - Attachment is obsolete: true
Attachment #186916 - Flags: review+
Flags: blocking2.18.2?
Flags: blocking2.18.2? → approval2.18?
Flags: approval2.18? → approval2.18+
Whiteboard: [does not affect 2.19.3+] → [ready for 2.18.3] [does not affect 2.19.3+]
Checking in editusers.cgi;
/cvsroot/mozilla/webtools/bugzilla/editusers.cgi,v  <--  editusers.cgi
new revision: 1.61.2.7; previous revision: 1.61.2.6
done
Checking in globals.pl;
/cvsroot/mozilla/webtools/bugzilla/globals.pl,v  <--  globals.pl
new revision: 1.270.2.11; previous revision: 1.270.2.10
done
Checking in token.cgi;
/cvsroot/mozilla/webtools/bugzilla/token.cgi,v  <--  token.cgi
new revision: 1.26.2.1; previous revision: 1.26
done
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Whiteboard: [ready for 2.18.3] [does not affect 2.19.3+] → [ready for 2.18.2] [does not affect 2.19.3+]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: