You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Ralf Hauser (JIRA)" <ji...@apache.org> on 2007/12/10 16:27:43 UTC

[jira] Created: (HTTPCLIENT-710) org.apache.commons.httpclient.protocol.SecureProtocolSocketFactory ignored upon redirect

org.apache.commons.httpclient.protocol.SecureProtocolSocketFactory ignored upon redirect
----------------------------------------------------------------------------------------

                 Key: HTTPCLIENT-710
                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-710
             Project: HttpComponents HttpClient
          Issue Type: Bug
          Components: HttpClient
    Affects Versions: 3.1 Final
            Reporter: Ralf Hauser


The first connection gets properly established with the 
		SecureProtocolSocketFactory sslSf = new MySSLSocketFactory();
		Protocol protocol = new Protocol("https", sslSf, port);
		client.getHostConfiguration().setHost(// location.getHost()
				DMS_HOST, port, protocol);
		client.executeMethod(httpGet);

but since our server does redirects, it should continue to do so, but it appears it doesn't:

	at javax.net.ssl.DefaultSSLSocketFactory.createSocket(SSLSocketFactory.java:212)
	at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:82)
	at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:127)
	at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
	at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
	at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org


[jira] Resolved: (HTTPCLIENT-710) org.apache.commons.httpclient.protocol.SecureProtocolSocketFactory ignored upon redirect

Posted by "Oleg Kalnichevski (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HTTPCLIENT-710?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oleg Kalnichevski resolved HTTPCLIENT-710.
------------------------------------------

    Resolution: Won't Fix

Ralf, please DO NOT cross-link unrelated issues.

Oleg 

> org.apache.commons.httpclient.protocol.SecureProtocolSocketFactory ignored upon redirect
> ----------------------------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-710
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-710
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpClient
>    Affects Versions: 3.1 Final
>            Reporter: Ralf Hauser
>
> The first connection gets properly established with the 
> 		SecureProtocolSocketFactory sslSf = new MySSLSocketFactory();
> 		Protocol protocol = new Protocol("https", sslSf, port);
> 		client.getHostConfiguration().setHost(// location.getHost()
> 				DMS_HOST, port, protocol);
> 		client.executeMethod(httpGet);
> but since our server does redirects, it should continue to do so, but it appears it doesn't:
> 	at javax.net.ssl.DefaultSSLSocketFactory.createSocket(SSLSocketFactory.java:212)
> 	at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:82)
> 	at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:127)
> 	at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
> 	at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
> 	at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
> 	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
> 	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org


[jira] Commented: (HTTPCLIENT-710) org.apache.commons.httpclient.protocol.SecureProtocolSocketFactory ignored upon redirect

Posted by "Ralf Hauser (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HTTPCLIENT-710?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12550106 ] 

Ralf Hauser commented on HTTPCLIENT-710:
----------------------------------------

see also HTTPCLIENT-498

> org.apache.commons.httpclient.protocol.SecureProtocolSocketFactory ignored upon redirect
> ----------------------------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-710
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-710
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpClient
>    Affects Versions: 3.1 Final
>            Reporter: Ralf Hauser
>
> The first connection gets properly established with the 
> 		SecureProtocolSocketFactory sslSf = new MySSLSocketFactory();
> 		Protocol protocol = new Protocol("https", sslSf, port);
> 		client.getHostConfiguration().setHost(// location.getHost()
> 				DMS_HOST, port, protocol);
> 		client.executeMethod(httpGet);
> but since our server does redirects, it should continue to do so, but it appears it doesn't:
> 	at javax.net.ssl.DefaultSSLSocketFactory.createSocket(SSLSocketFactory.java:212)
> 	at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:82)
> 	at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:127)
> 	at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
> 	at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
> 	at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
> 	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
> 	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org