ZF-5266: Incomplete personas fails validation when used with sreg

Issue Type: Bug Created: 2008-12-15T10:45:35.000+0000 Last Updated: 2012-11-20T20:52:35.000+0000 Status: Closed Fix version(s): Reporter: Patrik Högberg (phogberg) Assignee: None Tags: - Zend_Auth_Adapter_OpenId

  • Zend_OpenId

Related issues: Attachments:


If any fields in the defined persona (tested with <>) is empty, for example excluding the emailadress in the persona, validation fails when Sreg properties want to be fetched. Problem can be found in Zend_OpenId_Extension_Sreg::parseResponse() of the class.

ORIGINAL CODE IN Zend_OpenId_Extension_Sreg::parseResponse(): foreach (self::getSregProperties() as $prop) { if (!empty($params['openid_sreg_' . $prop])) { $props[$prop] = $params['openid_sreg_' . $prop]; } }

MODIFIED TO WORK WITH NON EXISTENT PERSONA PROPERTIES: foreach (self::getSregProperties() as $prop) { if (isset($params['openid_sreg_' . $prop])) { $props[$prop] = $params['openid_sreg_' . $prop]; } else { $props[$prop] = ""; } }


Posted by Rob Allen (rob) on 2012-11-20T20:52:35.000+0000

Bulk change of all issues last updated before 1st January 2010 as "Won't Fix".

Feel free to re-open and provide a patch if you want to fix this issue.

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.