Closed
Bug 340967
Opened 19 years ago
Closed 19 years ago
The login form appears twice when trying to add an attachment (due to two consecutive calls to Bugzilla->login)
Categories
(Bugzilla :: User Accounts, defect, P1)
Tracking
()
RESOLVED
FIXED
Bugzilla 3.0
People
(Reporter: LpSolit, Assigned: LpSolit)
Details
(Keywords: regression)
Attachments
(1 file)
1.39 KB,
patch
|
mkanat
:
review+
|
Details | Diff | Splinter Review |
Go visit a bug while you are logged out. Click "Add a new attachment". It asks for your login and password. Give them. The footer is now correct, but it asks for your login and password again. Doesn't affect 2.22 nor 2.20.2. Tip only.
![]() |
Assignee | |
Comment 1•19 years ago
|
||
mkanat, could it be related to the Auth rewrite?
Comment 2•19 years ago
|
||
Yeah, I think the new login system doesn't expect Bugzilla->login to be called twice in the same page call. It would be ideal to just call it once, if we can.
Updated•19 years ago
|
Assignee: user-accounts → mkanat
Updated•19 years ago
|
Priority: -- → P1
Comment 3•19 years ago
|
||
I think the double login things happens as well for any URL that requires login, that you visit directly without been logged in previously.
Priority: P1 → --
Updated•19 years ago
|
Priority: -- → P1
![]() |
Assignee | |
Comment 4•19 years ago
|
||
The problem with two consecutive Bugzilla->login() is that cookies created by the first one aren't immediately available for the second one (probably a CGI specific behavior). So we have to look at Bugzilla_cookie_list in order to get the newly created cookies. Note that I used a similar approach to Auth::Persist::Cookie::logout().
Comment 5•19 years ago
|
||
Comment on attachment 228076 [details] [diff] [review]
patch, v1
Let's just *always* use Bugzilla_cookie_list. Why not?
Attachment #228076 -
Flags: review?(mkanat) → review-
Comment 6•19 years ago
|
||
Comment on attachment 228076 [details] [diff] [review]
patch, v1
LpSolit really doesn't want to re-write this, and the code *does* look as though it should work. It fixes a regression, and that's important, so let's just go with it.
Attachment #228076 -
Flags: review- → review+
Updated•19 years ago
|
Flags: approval?
Updated•19 years ago
|
Flags: approval? → approval+
![]() |
Assignee | |
Comment 7•19 years ago
|
||
Checking in Bugzilla/Auth/Login/Cookie.pm;
/cvsroot/mozilla/webtools/bugzilla/Bugzilla/Auth/Login/Cookie.pm,v <-- Cookie.pm
new revision: 1.5; previous revision: 1.4
done
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Summary: The login form appears twice when trying to add an attachment → The login form appears twice when trying to add an attachment (due to two consecutive calls to Bugzilla->login)
![]() |
Assignee | |
Comment 8•19 years ago
|
||
Hum, weird. I can reproduce this bug again.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
![]() |
Assignee | |
Comment 9•19 years ago
|
||
OK, the reason of the problem was that I had an old cookie left in my cookie manager, and this confused Fx. Removing this old cookie fixes the problem. This problem seems to happen when you change 'cookiepath' from "/" to "/bugzilla/" as Bugzilla is unable to delete the login cookie which points to another path, but still detects the one set with "/".
Status: REOPENED → RESOLVED
Closed: 19 years ago → 19 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•