Closed Bug 469095 Opened 16 years ago Closed 16 years ago

Error Notice: this variable may not be empty: $_POST["username"] when clicking "Switch" button

Categories

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

defect
Not set
minor

Tracking

(Not tracked)

VERIFIED DUPLICATE of bug 463719

People

(Reporter: stephend, Unassigned)

References

()

Details

Steps to Reproduce:

1. Ensure you're logged out.
2. Load https://support-stage.mozilla.org/tiki-login_scr.php
3. Log in
4. Click Firefox's "Back" button
5. Press the "Switch" button without entering anything

Expected Results:

Actual Results:

"Error

Notice: this variable may not be empty: $_POST["username"]"

Seems bad...(at least remove the notice!)

(I think this bug might occur because of the way Firefox implements its BFCache (back-forward cache, which doesn't resubmit POSTs, iirc).
FWIW, I'm not presented with the user-switching UI on prod, so don't know if the UI that includes the "Switch" button in comment 5 is intended or not; assuming so?
IIRC, the switch feature only appears for admins.
Target Milestone: --- → 0.8
FYI, this message is produced by a function built into tiki-setup_base.php. It's just a variable check that makes sure certain params aren't empty (obviously ;). I agree that the generic message makes it sound like the sky has fallen instead of a field just being empty.

I'm also under the impression only admins can access the switch feature.
Severity: major → minor
Target Milestone: 0.8 → 0.9
Resolved as part of the fix for https://bugzilla.mozilla.org/show_bug.cgi?id=463719
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
Verified dup
Status: RESOLVED → VERIFIED
Target Milestone: 0.9 → 0.8.2
You need to log in before you can comment on or make changes to this bug.