Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.10.15

Bug #17234 channel-discover adds port to HTTP Host header
Submitted: 2010-03-16 17:03 UTC
From: cweiske Assigned: dufuz
Status: Closed Package: PEAR (version 1.9.0)
PHP Version: Irrelevant OS:
Roadmaps: (Not assigned)    
Subscription  


 [2010-03-16 17:03 UTC] cweiske (Christian Weiske)
Description: ------------ $ pear channel-discover http://pear-smarty.googlecode.com/svn Discovering channel http://pear-smarty.googlecode.com/svn over http:// failed with message: channel-add: Cannot open "http://http://pear-smarty.googlecode.com/svn/channel.xml" (Connection to `http:80' failed: php_network_getaddresses: getaddrinfo failed: Name or service not known) Wireshark reveals: Host: pear-smarty.googlecode.com:80\r\n this is plain wrong

Comments

 [2010-03-17 09:41 UTC] comma (Alexander Ilyin)
Same problem but with a little bit different error message was detected with PEAR 1.7.2
 [2010-03-23 02:58 UTC] chrismattmann (Chris Mattmann)
Hey Guys, I'm seeing this too, and it's preventing me from doing some installation operations with the Zend PEAR channel on googlecode. Any idea why it's occurring, or where to start to fix the problem? Cheers, Chris Mattmann
 [2010-03-23 19:49 UTC] cweiske (Christian Weiske)
cweiske:~/Documents/Streuben> pear channel-discover pear-smarty.googlecode.com/svn Discovering channel pear-smarty.googlecode.com/svn over http:// failed with message: channel-add: Cannot open "http://pear-smarty.googlecode.com/svn/channel.xml" (File http://pear-smarty.googlecode.com:80/svn/channel.xml not valid (received: HTTP/1.1 404 Not Found )) Trying to discover channel pear-smarty.googlecode.com/svn over https:// instead Discovery of channel "pear-smarty.googlecode.com/svn" failed (channel-add: Cannot open "https://pear-smarty.googlecode.com/svn/channel.xml" (File https://pear-smarty.googlecode.com:443/svn/channel.xml not valid (received: HTTP/1.1 404 Not Found )))
 [2010-03-23 19:53 UTC] cweiske (Christian Weiske)
The HTTP RFC actually allows adding the port: http://www.faqs.org/rfcs/rfc2616.html 14.23 Host Host = "Host" ":" host [ ":" port ] ; Section 3.2.2 So google code is broken.
 [2010-03-23 20:01 UTC] comma (Alexander Ilyin)
Maybe PEAR souldn't provide default port if it's not provided as param? For example I could run my server at 8080 port and then PEAR couldn't connect to it too?
 [2010-03-23 20:04 UTC] cweiske (Christian Weiske)
I posted a request to the google code group: http://groups.google.com/group/google-code-hosting
 [2010-03-23 20:09 UTC] cweiske (Christian Weiske)
 [2010-03-25 05:54 UTC] dufuz (Helgi Þormar Þorbjörnsson)
-Status: Open +Status: Closed -Assigned To: +Assigned To: dufuz
This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.
 [2010-05-07 19:10 UTC] cweiske (Christian Weiske)
Google fixed their servers, and we don't send the port anymore: $ curl -i --header "Host: mediawiki.googlecode.com:80" mediawiki.googlecode.com/svn/channel.xml <?xml....