Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: 1.5.0RC1
-
Fix Version/s: 1.8.0
-
Component/s: Zend_Loader, Zend_Validate, Zend_XmlRpc_Client
-
Labels:None
-
Fix Version Priority:Must Have
Description
Exception
--------------
fopen(Zend/Validate/Hostname/Net.php): failed to open stream: No such file or directory on Loader.php, Line 160
#0 /www/security.playxp.com/includes/Zend/Loader.php(160): Handler::Error(2, 'fopen(Zend/Vali...', '/www/security.p...', 160, Array)
#1 /www/security.playxp.com/includes/Zend/Validate/Hostname.php(327): Zend_Loader::isReadable('Zend/Validate/H...', 'r', true)
#2 /www/security.playxp.com/includes/Zend/Uri/Http.php(354): Zend_Validate_Hostname->isValid('Zend/Validate/H...')
#3 /www/security.playxp.com/includes/Zend/Uri/Http.php(185): Zend_Uri_Http->validateHost('openid.daum.net')
#4 /www/security.playxp.com/includes/Zend/Uri/Http.php(96): Zend_Uri_Http->valid()
#5 /www/security.playxp.com/includes/Zend/Uri.php(117): Zend_Uri_Http->__construct()
#6 /www/security.playxp.com/includes/Zend/Http/Client.php(223): Zend_Uri::factory('http', '//openid.daum.n...')
#7 /www/security.playxp.com/includes/Zend/Http/Client.php(209): Zend_Http_Client->setUri('http://openid.d...')
#8 /www/security.playxp.com/includes/Zend/OpenId/Consumer.php(406): Zend_Http_Client->__construct('http://openid.d...')
#9 /www/security.playxp.com/includes/Zend/OpenId/Consumer.php(607): Zend_OpenId_Consumer->_httpRequest('http://openid.d...', Array)
#10 /www/security.playxp.com/includes/Zend/OpenId/Consumer.php(694): Zend_OpenId_Consumer->_discovery('http://openid.d...')
#11 /www/security.playxp.com/includes/Zend/OpenId/Consumer.php(131): Zend_OpenId_Consumer->_checkId('http://openid.d...', NULL, NULL)
#12 /www/security.playxp.com/htdocs/login.php(23): Zend_OpenId_Consumer->login(false, 'openid.daum.net...', 'http://security...', 'http://*.playxp...', NULL, NULL)
#13 /www/security.playxp.com/htdocs/processor.php(18): require('/www/security.p...')
#14 {main}
Frontend(login.php) source-code are below...
$consumer = new Zend_OpenId_Consumer();
if ($consumer->login($strIdentifier, 'http://security.playxp.com/openid', 'http://*.playxp.com') === false)
{
$status = "OpenID login failed.<br>";
}
include_path = .:/www/security.playxp.com/includes/:/www/security.playxp.com/templates/
The Zend is installed on /www/security.playxp.com/includes/Zend.
Tested $strIdentifier are "openid.daum.net/nios" and "nios.myid.net".
Issue Links
| This issue is duplicated by: | ||||
| ZF-4267 | Zend_Validate_Hostname (*.org) |
|
|
|
| ZF-4410 | Apparent missing file: Zend/Validate/Hostname/Name.php |
|
|
|
| ZF-3989 | Bug with Zend/Validate/Hostname/Com.php, Zend/Validate/Hostname/Fr.php.... |
|
|
|
| ZF-5925 | Zend_HTTP_Client raises a Hostname validator warning |
|
|
|
| This issue is related to: | ||||
| ZF-3020 | Zend_Session error handler handles anything in E_ALL as an exception |
|
|
|
I think there is problem in isValid($value) function in Zend/Validate/Hostname.php .
If you use a top level domain name that are not in /Zend/Validate/Hostname directory but exists in $_validTlds array , this problem will happen.
I think default php file should exists in Zend/Validate/Hostname directory.
The default php file should work if there is not php file to match the top level domain name.