ZF-1920: ClientLogin class creates a new Zend_Http_Client object, destroying proxy adapter settings
Description
After authenticating, the ClientLogin class creates a new Zend_Http_Client object--- ignoring previously set proxy adapter settings. This makes the authentication request succeed in going through the proxy, but all other requests with the client returned from the ClientLogin code will fail, as they won't be going through the proxy.
See: Zend_Gdata_ClientLogin::getHttpClient (line 132 -- $client = new Zend_Http_Client).
Comments
Posted by Dennis Becker (radhad) on 2008-06-24T07:01:50.000+0000
This also affects 1.5.x versions!!!
in ZF 1.5.2 line 143 following:
Why don't you use the previous Zend_Http_Client and create a new one? You have already a Zend_Http_Client above!
In ZF 1.5.2 libe 75 following:
Solution: remove the code which creates a new Zend_Http_Client or get the previous settings from the first Zend_Http_Client instance!
Posted by Jochen Hartmann (jhartmann) on 2009-02-26T16:50:24.000+0000
Investigating: http://codereview.appspot.com/20085
Posted by Jochen Hartmann (jhartmann) on 2009-03-02T18:19:04.000+0000
Fixed in r14204 and merged to 1-7 branch in r14205.