Last modified: 2012-08-18 08:27:12 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T41435, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 39435 - Automatic login with OpenID does not work
Automatic login with OpenID does not work
Status: RESOLVED WORKSFORME
Product: MediaWiki extensions
Classification: Unclassified
OpenID (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: T. Gries
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-08-16 18:06 UTC by simone.hinterseher
Modified: 2012-08-18 08:27 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description simone.hinterseher 2012-08-16 18:06:51 UTC
After Login with OpenID I get to:

"Verification succeeded
Successful verification and log in as user username.
Your OpenID is https://www.google.com/accounts/o8/id?id=someId
This and further OpenIDs, and an optional account password, can be managed in your preferences.
Return to Main Page."

When I click on my user profile to add the OpenID to the created profile I get

"Not logged in
You must be logged in to set user preferences."

I can send me an email reminder of an account password to login later and add the OpenID, but I think the login should be there automatically.

Also, is it possible to automatically add the OpenID to the created user profile?
Comment 1 T. Gries 2012-08-16 21:01:18 UTC
This usually works automatically. Once your are in (OpenID account creation), the OpenID is (should be) automatically attached to your (new) account.

perhaps it is an issue (which I had in former versions of the MediaWIki core), that the links (on top of screen) were not immediately updated, which was an issue of the so-called context.

Will check this.

Please can you post here the exact MediaWiki version, and OpenID version ?
Comment 2 T. Gries 2012-08-16 21:14:55 UTC
I tested it, it works for me. Must be another reason on your server.

My wiki:

Product 	Version
MediaWiki 	1.20alpha (a441912)
PHP 	5.3.14 (apache2handler)
MySQL 	5.1.57-log
OpenID (Version 1.004 20120427) 	(r115098)
Comment 3 T. Gries 2012-08-16 22:28:20 UTC
Just one idea:

Have you recently upgraded from an older version of OpenID ? I checked the sources, and the problem reported by you - or similar to it - was fixed in https://www.mediawiki.org/wiki/Special:Code/MediaWiki/95706 (29 August 2011)

I suggest you fully delete the old extension subdirectory and reinstall the 1.004 version from SVN.

Let me know if the problem still persists.
Comment 4 simone.hinterseher 2012-08-16 23:07:48 UTC
I just found that it is because of the browser I use. I used the most current Chrome (21.0.1180.79) and it would have the described issue.
With Firefox 14 and Internet Explorer 8 it works fine.

OpenID (Version 1.004 20120427)
MediaWiki    1.19.1
PHP    5.3.3 (apache2handler)
MySQL    5.0.95
Comment 5 simone.hinterseher 2012-08-16 23:11:44 UTC
To answer your last question: There was no upgrade. I did a complete new install of MediaWiki and OpenId Extension.
Comment 6 T. Gries 2012-08-16 23:13:06 UTC
I checked that now with Chrome 21.0.1180.79 - it works for me !
Comment 7 T. Gries 2012-08-17 06:27:45 UTC
If you still have this problem, you can try something ?

Delete the one account, or merge it with your Sysop account (I use the https://www.mediawiki.org/wiki/Extension:User_Merge_and_Delete extension to merge and delete after successful merging "new OpenID test user" accounts with my WikiSysop account. Then I can try again.)

Just ***before*** the stage you are describing as "When I click on my user profile to add the OpenID to the created profile I get" press Ctrl+F5 in your browser.

Do the portlet links (my preferences) change then? I mean exactly: do they show still the IP number or do they show the newly added username ?
Comment 8 simone.hinterseher 2012-08-17 18:47:20 UTC
Yes I still have this problem. Only with Chrome.

On the Special:OpenIDLogin/Finish page with the title "Verification succeeded" I already see the portlet links changed (username is shown instead of IP). However, once I go from there to any other page of the wiki it seems to loose the login information, i.e. the IP is shown again instead of the username.
I tried using Ctrl+F5 on Special:OpenIDLogin/Finish aswell with the same result.
Comment 9 simone.hinterseher 2012-08-17 18:52:46 UTC
Actually, I get a "Verification error" when I hit Ctrl+F45 on the Speical:OpenIDLogin/Finish page. But I guess one is normally not supposed to do that anyways right?
Comment 10 T. Gries 2012-08-17 21:31:22 UTC
(In reply to comment #8)
> On the Special:OpenIDLogin/Finish page with the title "Verification succeeded"
> I already see the portlet links changed (username is shown instead of IP).
> However, once I go from there to any other page of the wiki it seems to loose
> the login information, i.e. the IP is shown again instead of the username.
> I tried using Ctrl+F5 on Special:OpenIDLogin/Finish aswell with the same
> result.

Please hover above the portlet link (not clicking) when it already shows the username. Is the url (link) reflecting this change, or has the link still the IP address ?

This was the effect which I fixed one year ago in the mentioned commit, but I did not test that in Chrome then.

I am pretty sure it is an issue of caching, or a context problem, and it is indeed very annoying and difficult to track (I will try with your help).

And, why is my reference implementation with the same Chrome version not showing this effect you described? Strange
Comment 11 simone.hinterseher 2012-08-18 03:12:47 UTC
The url of the link already shows the username (link to .../User:username).

Yes it seems a little strange if you don't encounter the same.. if I you need any other information to track down the issue let me know.
Comment 12 simone.hinterseher 2012-08-18 05:32:05 UTC
I installed the mediawiki with extensions and configurations anew. The problem seems to have disappeared. I'm not sure what I did differently.
Comment 13 simone.hinterseher 2012-08-18 05:32:37 UTC
(the versions of anything remained the same)
Comment 14 T. Gries 2012-08-18 08:27:12 UTC
> I installed the mediawiki with extensions and configurations anew

Good to know. Reinstallation helps in many cases (actually it was my advice in https://bugzilla.wikimedia.org/show_bug.cgi?id=39435#c3 )

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links