Page MenuHomePhabricator

errors in log file and not working as a provider
Closed, DeclinedPublicBUG REPORT

Description

Author: aditaa

Description:
when tring to use this plugin as a provider it auths correctly but then just sits at the page (Special:OpenIDServer) on the wiki and never goes back to the site useing it

also these errors come up in my error log :

[Tue Aug 05 16:15:47 2014] [error] [client IP] PHP Notice: Undefined property: Auth_OpenID_EncodingError::$code in /var/www/html/w/extensions/OpenID/SpecialOpenIDServer.body.php on line 685
[Tue Aug 05 16:15:47 2014] [error] [client IP] PHP Notice: Undefined property: Auth_OpenID_EncodingError::$headers in /var/www/html/w/extensions/OpenID/SpecialOpenIDServer.body.php on line 687
[Tue Aug 05 16:15:47 2014] [error] [client IP] PHP Warning: Invalid argument supplied for foreach() in /var/www/html/w/extensions/OpenID/SpecialOpenIDServer.body.php on line 687
[Tue Aug 05 16:15:47 2014] [error] [client IP] PHP Notice: Undefined property: Auth_OpenID_EncodingError::$body in /var/www/html/w/extensions/OpenID/SpecialOpenIDServer.body.php on line 691

and from wgDebugLogFile:
Start request HEAD /wiki/Special:OpenIDXRDS
HTTP HEADERS:
HOST: DOMAIN.com
CONNECTION: Keep-Alive
ACCEPT-ENCODING: gzip
CF-IPCOUNTRY: US
X-FORWARDED-FOR: IP
CF-RAY: 15545362f3f7085c-IAD
X-FORWARDED-PROTO: http
CF-VISITOR: {"scheme":"http"}
COOKIE: __cfduid=d5COKKIEID01
COOKIE2: $Version=1
CF-CONNECTING-IP: IP
[caches] main: APCBagOStuff, message: APCBagOStuff, parser: APCBagOStuff
[caches] LocalisationCache: using store LCStoreCDB
Fully initialised
Request ended normally

Start request GET /wiki/Special:OpenIDXRDS
HTTP HEADERS:
HOST: DOMAIN.com
CONNECTION: Keep-Alive
ACCEPT-ENCODING: gzip
CF-IPCOUNTRY: US
X-FORWARDED-FOR: IP
CF-RAY: 15545363436b085c-IAD
X-FORWARDED-PROTO: http
CF-VISITOR: {"scheme":"http"}
ACCEPT: text/html; q=0.3, application/xhtml+xml; q=0.5, application/xrds+xml
COOKIE: __cfduid=d5COKKIEID01
COOKIE2: $Version=1
CF-CONNECTING-IP: IP
[caches] main: APCBagOStuff, message: APCBagOStuff, parser: APCBagOStuff
[caches] LocalisationCache: using store LCStoreCDB
Fully initialised
Request ended normally

Start request POST /wiki/Special:OpenIDServer
HTTP HEADERS:
HOST: DOMAIN.com
CONNECTION: Keep-Alive
ACCEPT-ENCODING: gzip
CF-IPCOUNTRY: US
X-FORWARDED-FOR: IP
CF-RAY: 1554537b9aee0d25-ATL
CONTENT-LENGTH: 1074
X-FORWARDED-PROTO: http
CF-VISITOR: {"scheme":"http"}
USER-AGENT: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0
ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
ACCEPT-LANGUAGE: en-US,en;q=0.5
COOKIE: cfduid=d8COKKIEID67; utma=147593071.401368527.1406301174.1407187915.1407247900.7; utmc=147593071; utmz=147593071.1406301174.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); ig2ad_session=6dSESSIONID0f; ig2adUserName=MYUSERNAME; vector-nav-p-tb=true; LoggedOut=1407251535; PHPSESSID=r6SESSIONID15; openid_server=pdSERVERIDs0; UserID=1
CONTENT-TYPE: application/x-www-form-urlencoded
X-BLUECOAT-VIA: 3dde474e0fded9a4
CF-CONNECTING-IP: IP
[caches] main: APCBagOStuff, message: APCBagOStuff, parser: APCBagOStuff
[caches] LocalisationCache: using store LCStoreCDB
Fully initialised
User: got user 1 from cache
User: loading options for user 1 from override cache.
User: logged in from session
User: loading options for user 1 from override cache.
MessageCache::load: Loading en... got from local cache
[autoloader] Class FormatJSON was loaded using incorrect case
[warning] Did not find alias for special page 'OpenIDIdentifier'. Perhaps no aliases are defined for it? [Called from SpecialPageFactory::getLocalNameFor in /WIKIROOT/includes/specialpage/SpecialPageFactory.php at line 597]
Request ended normally

output of phpinfo():

library

openssl OpenSSL 1.0.1e-fips 11 Feb 2013
gmp 4.3.1
mcrypt 2.5.8
bzip2 1.0.5, 10-Dec-2007

wiki's version for component

MediaWiki version and revision 1.24alpha (ec2ead5)
11:26, 4 August 2014
PHP 5.3.3 (apache2handler)
OpenID extension version and revision 4.4.0 20140401 (8d98880) 19:56, 4 August 2014


Version: master
Severity: critical
OS: Linux

Details

Reference
bz69148

Related Objects

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:37 AM
bzimport set Reference to bz69148.

thanks for reporting. Cannot help at the moment, perhaps later. Was E:OpenID working for you previously ?

aditaa wrote:

it is kind of working it works if you just use it as an auth for one user but it does not work as a sso method ... it gets hung ... also the errors where always there ... even tring diffrent branchs from git

Aklapper subscribed.

[Resetting task assignee to avoid cookie-licking. Please reclaim the task when you plan to actively work on this task. Thanks!]

Experiencing the same problem. When setting up a wiki with OpenID as provider, and using the "Special:OpenIDServer/id" URL to connect to my wiki, it lets you type your username, password but returns with an error on the webpage:

"Warning: Invalid argument supplied for foreach() in xxxxx/SpecialOpenIDServer.body.php on line 687"

This is for:
MediaWiki: 1.25.1
PHP: 5.3.28 (apache2handler)
MySQL: 5.6.23-log
OpenID: 4.4.0 20140401

Connecting to the OpenID provider using xxxxx/Special:OpenIDIdentifier/{ID} somewhat works but than everybody needs to know their ID.... and it looks like none of the OpenID parameters is send back to the requested site....

Aklapper triaged this task as Low priority.Feb 4 2022, 8:07 PM
Aklapper changed the subtype of this task from "Task" to "Bug Report".