Closed Bug 481946 Opened 15 years ago Closed 15 years ago

Vague error message on empty Switch input on log in page

Categories

(support.mozilla.org :: General, defect)

defect
Not set
trivial

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: paulc, Assigned: paulc)

References

()

Details

(Keywords: ue, Whiteboard: tiki_string, tiki_upstreamed)

Attachments

(1 file)

Steps:
1. While logged in to support.mozilla.com go to https://support-stage.mozilla.org/tiki-login_scr.php
2. Press "Switch" without entering any username.

Actual results:
Error -- An unexpected error has occurred!

Expected results:
A more specific error message such as "Please make sure to enter a username. Use the browser's Back button and try again"
Chris, is my text suggestion okay?
The Switch feature is only available to admins. The text is fine. I would rather we just get rid the Switch feature from the login page.
It's nice for testing multiple accounts though, I think.
I believe that error is thrown from tiki-setup_base.php when it does type checking (sometime after ~300).
Paul, make sure the ending period is inside the string, since it's not being used in Japanese (see bug 433319).

Stephen, can we get some English perfection skills? :)
"Please be sure to enter a username before clicking 'Switch'; below, click 'Go back' to retry." -- how's that sound?

(Don't know about that whole "English perfection skills thing, TBH :-P)
David: will do.
Stephen: I think that sounds good!
I think it sounds a little too formal with that semi-colon. I know that it's most probably 100% correct but just looks a bit too much to me. :) Can we simplify a little? How about this (Stephen, feel free to object since Swedish is my main language):

Please make sure you enter a username before clicking "Switch". Click "Go back" to try again.
Unfortunately the fix seems to involve the function varcheck(&$array, $category) defined in tiki-setup_base.php on line 313.

I attached the patch that would work, but the setup throws the error before I can do anything in tiki-login. Fixing varcheck seems like something unnecessary. I say we just WONTFIX this...
WONTFIX per comment 9. Thanks Paul.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → WONTFIX
Target Milestone: 1.1 → 1.0
r23860 / r23861
Got the idea while fixing bug 480428 :)
Resolution: WONTFIX → FIXED
Ooops, make that r23861 / r23862
I now get "Error

Username field cannot be empty. Please go back and try again." when I click the "Switch" button without specifying a username.

Verified FIXED on https://support-stage.mozilla.org/tiki-login.php
Status: RESOLVED → VERIFIED
Whiteboard: tiki_string
Whiteboard: tiki_string → tiki_string, tiki_upstreamed
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: