You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Thiago Souza (Created) (JIRA)" <ji...@apache.org> on 2012/02/22 15:15:48 UTC
[jira] [Created] (HTTPASYNC-14) DefaultHttpAsyncClient does not
follows redirects when remote site closes connection
DefaultHttpAsyncClient does not follows redirects when remote site closes connection
------------------------------------------------------------------------------------
Key: HTTPASYNC-14
URL: https://issues.apache.org/jira/browse/HTTPASYNC-14
Project: HttpComponents HttpAsyncClient
Issue Type: Bug
Affects Versions: 4.0-alpha3
Environment: Windows 7 x64, Java HotSpot(TM) 64-Bit Server VM (build 20.0-b11, mixed mode)
Reporter: Thiago Souza
Priority: Blocker
When a site sends a redirect while closing connection the redirect is not followed, the passed FutureCallback receives "cancelled()" and future.get() returns null.
The following reproduces the error:
public class Test implements FutureCallback<HttpResponse>
{
public static void main(String[] args) throws Exception
{
HttpAsyncClient httpclient = new DefaultHttpAsyncClient();
httpclient.start();
HttpGet request = new HttpGet("http://www.comprafacil.com.br/comprafacil/pages/viewProduct.jsf?VP=5wohvWvi8jgV60Cm%2FVhQr8FTEIJoz9WA&VPP=FREEZER+VERTICAL+246+LTS+CVU30D+CONSUL");
System.out.println(httpclient.execute(request, new Test()).get());
System.out.println("Done");
}
public void completed(HttpResponse result)
{
System.out.println("completed");
}
public void failed(Exception ex)
{
System.out.println("failed");
}
public void cancelled()
{
System.out.println("cancelled");
}
}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org
[jira] [Commented] (HTTPASYNC-14) DefaultHttpAsyncClient does not
follows redirects when remote site closes connection
Posted by "Thiago Souza (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HTTPASYNC-14?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13213652#comment-13213652 ]
Thiago Souza commented on HTTPASYNC-14:
---------------------------------------
Hi Oleg, do I need to build beta1 myself or is it available in some snapshot repo?
Thanks!
> DefaultHttpAsyncClient does not follows redirects when remote site closes connection
> ------------------------------------------------------------------------------------
>
> Key: HTTPASYNC-14
> URL: https://issues.apache.org/jira/browse/HTTPASYNC-14
> Project: HttpComponents HttpAsyncClient
> Issue Type: Bug
> Affects Versions: 4.0-alpha3
> Environment: Windows 7 x64, Java HotSpot(TM) 64-Bit Server VM (build 20.0-b11, mixed mode)
> Reporter: Thiago Souza
> Priority: Blocker
>
> When a site sends a redirect while closing connection the redirect is not followed, the passed FutureCallback receives "cancelled()" and future.get() returns null.
> The following reproduces the error:
> public class Test implements FutureCallback<HttpResponse>
> {
> public static void main(String[] args) throws Exception
> {
> HttpAsyncClient httpclient = new DefaultHttpAsyncClient();
> httpclient.start();
> HttpGet request = new HttpGet("http://www.comprafacil.com.br/comprafacil/pages/viewProduct.jsf?VP=5wohvWvi8jgV60Cm%2FVhQr8FTEIJoz9WA&VPP=FREEZER+VERTICAL+246+LTS+CVU30D+CONSUL");
> System.out.println(httpclient.execute(request, new Test()).get());
> System.out.println("Done");
> }
> public void completed(HttpResponse result)
> {
> System.out.println("completed");
> }
> public void failed(Exception ex)
> {
> System.out.println("failed");
> }
> public void cancelled()
> {
> System.out.println("cancelled");
> }
> }
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org
[jira] [Commented] (HTTPASYNC-14) DefaultHttpAsyncClient does not
follows redirects when remote site closes connection
Posted by "Oleg Kalnichevski (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HTTPASYNC-14?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13213648#comment-13213648 ]
Oleg Kalnichevski commented on HTTPASYNC-14:
--------------------------------------------
I believe this issue is a duplicate of HTTPASYNC-11. Could you please upgrade to version 4.0-beta1, re-test your application and let me know if the problem is resolved?
Oleg
> DefaultHttpAsyncClient does not follows redirects when remote site closes connection
> ------------------------------------------------------------------------------------
>
> Key: HTTPASYNC-14
> URL: https://issues.apache.org/jira/browse/HTTPASYNC-14
> Project: HttpComponents HttpAsyncClient
> Issue Type: Bug
> Affects Versions: 4.0-alpha3
> Environment: Windows 7 x64, Java HotSpot(TM) 64-Bit Server VM (build 20.0-b11, mixed mode)
> Reporter: Thiago Souza
> Priority: Blocker
>
> When a site sends a redirect while closing connection the redirect is not followed, the passed FutureCallback receives "cancelled()" and future.get() returns null.
> The following reproduces the error:
> public class Test implements FutureCallback<HttpResponse>
> {
> public static void main(String[] args) throws Exception
> {
> HttpAsyncClient httpclient = new DefaultHttpAsyncClient();
> httpclient.start();
> HttpGet request = new HttpGet("http://www.comprafacil.com.br/comprafacil/pages/viewProduct.jsf?VP=5wohvWvi8jgV60Cm%2FVhQr8FTEIJoz9WA&VPP=FREEZER+VERTICAL+246+LTS+CVU30D+CONSUL");
> System.out.println(httpclient.execute(request, new Test()).get());
> System.out.println("Done");
> }
> public void completed(HttpResponse result)
> {
> System.out.println("completed");
> }
> public void failed(Exception ex)
> {
> System.out.println("failed");
> }
> public void cancelled()
> {
> System.out.println("cancelled");
> }
> }
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org
[jira] [Commented] (HTTPASYNC-14) DefaultHttpAsyncClient does not
follows redirects when remote site closes connection
Posted by "Thiago Souza (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HTTPASYNC-14?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13213657#comment-13213657 ]
Thiago Souza commented on HTTPASYNC-14:
---------------------------------------
Oleg, I couldn't reproduce it with beta1. Thanks!
> DefaultHttpAsyncClient does not follows redirects when remote site closes connection
> ------------------------------------------------------------------------------------
>
> Key: HTTPASYNC-14
> URL: https://issues.apache.org/jira/browse/HTTPASYNC-14
> Project: HttpComponents HttpAsyncClient
> Issue Type: Bug
> Affects Versions: 4.0-alpha3
> Environment: Windows 7 x64, Java HotSpot(TM) 64-Bit Server VM (build 20.0-b11, mixed mode)
> Reporter: Thiago Souza
> Priority: Blocker
>
> When a site sends a redirect while closing connection the redirect is not followed, the passed FutureCallback receives "cancelled()" and future.get() returns null.
> The following reproduces the error:
> public class Test implements FutureCallback<HttpResponse>
> {
> public static void main(String[] args) throws Exception
> {
> HttpAsyncClient httpclient = new DefaultHttpAsyncClient();
> httpclient.start();
> HttpGet request = new HttpGet("http://www.comprafacil.com.br/comprafacil/pages/viewProduct.jsf?VP=5wohvWvi8jgV60Cm%2FVhQr8FTEIJoz9WA&VPP=FREEZER+VERTICAL+246+LTS+CVU30D+CONSUL");
> System.out.println(httpclient.execute(request, new Test()).get());
> System.out.println("Done");
> }
> public void completed(HttpResponse result)
> {
> System.out.println("completed");
> }
> public void failed(Exception ex)
> {
> System.out.println("failed");
> }
> public void cancelled()
> {
> System.out.println("cancelled");
> }
> }
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org
[jira] [Updated] (HTTPASYNC-14) DefaultHttpAsyncClient does not
follows redirects when remote site closes connection
Posted by "Thiago Souza (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HTTPASYNC-14?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thiago Souza updated HTTPASYNC-14:
----------------------------------
Comment: was deleted
(was: Hi Oleg, do I need to build beta1 myself or is it available in some snapshot repo?
Thanks!
)
> DefaultHttpAsyncClient does not follows redirects when remote site closes connection
> ------------------------------------------------------------------------------------
>
> Key: HTTPASYNC-14
> URL: https://issues.apache.org/jira/browse/HTTPASYNC-14
> Project: HttpComponents HttpAsyncClient
> Issue Type: Bug
> Affects Versions: 4.0-alpha3
> Environment: Windows 7 x64, Java HotSpot(TM) 64-Bit Server VM (build 20.0-b11, mixed mode)
> Reporter: Thiago Souza
> Priority: Blocker
>
> When a site sends a redirect while closing connection the redirect is not followed, the passed FutureCallback receives "cancelled()" and future.get() returns null.
> The following reproduces the error:
> public class Test implements FutureCallback<HttpResponse>
> {
> public static void main(String[] args) throws Exception
> {
> HttpAsyncClient httpclient = new DefaultHttpAsyncClient();
> httpclient.start();
> HttpGet request = new HttpGet("http://www.comprafacil.com.br/comprafacil/pages/viewProduct.jsf?VP=5wohvWvi8jgV60Cm%2FVhQr8FTEIJoz9WA&VPP=FREEZER+VERTICAL+246+LTS+CVU30D+CONSUL");
> System.out.println(httpclient.execute(request, new Test()).get());
> System.out.println("Done");
> }
> public void completed(HttpResponse result)
> {
> System.out.println("completed");
> }
> public void failed(Exception ex)
> {
> System.out.println("failed");
> }
> public void cancelled()
> {
> System.out.println("cancelled");
> }
> }
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org
[jira] [Resolved] (HTTPASYNC-14) DefaultHttpAsyncClient does not
follows redirects when remote site closes connection
Posted by "Oleg Kalnichevski (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HTTPASYNC-14?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Oleg Kalnichevski resolved HTTPASYNC-14.
----------------------------------------
Resolution: Fixed
Fix Version/s: 4.0-beta1
That was fast! Glad the problem has been solved, anyway.
Oleg
> DefaultHttpAsyncClient does not follows redirects when remote site closes connection
> ------------------------------------------------------------------------------------
>
> Key: HTTPASYNC-14
> URL: https://issues.apache.org/jira/browse/HTTPASYNC-14
> Project: HttpComponents HttpAsyncClient
> Issue Type: Bug
> Affects Versions: 4.0-alpha3
> Environment: Windows 7 x64, Java HotSpot(TM) 64-Bit Server VM (build 20.0-b11, mixed mode)
> Reporter: Thiago Souza
> Priority: Blocker
> Fix For: 4.0-beta1
>
>
> When a site sends a redirect while closing connection the redirect is not followed, the passed FutureCallback receives "cancelled()" and future.get() returns null.
> The following reproduces the error:
> public class Test implements FutureCallback<HttpResponse>
> {
> public static void main(String[] args) throws Exception
> {
> HttpAsyncClient httpclient = new DefaultHttpAsyncClient();
> httpclient.start();
> HttpGet request = new HttpGet("http://www.comprafacil.com.br/comprafacil/pages/viewProduct.jsf?VP=5wohvWvi8jgV60Cm%2FVhQr8FTEIJoz9WA&VPP=FREEZER+VERTICAL+246+LTS+CVU30D+CONSUL");
> System.out.println(httpclient.execute(request, new Test()).get());
> System.out.println("Done");
> }
> public void completed(HttpResponse result)
> {
> System.out.println("completed");
> }
> public void failed(Exception ex)
> {
> System.out.println("failed");
> }
> public void cancelled()
> {
> System.out.println("cancelled");
> }
> }
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org
[jira] [Commented] (HTTPASYNC-14) DefaultHttpAsyncClient does not
follows redirects when remote site closes connection
Posted by "Thiago Souza (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HTTPASYNC-14?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13213705#comment-13213705 ]
Thiago Souza commented on HTTPASYNC-14:
---------------------------------------
You also replied fast!
Sorry to open this issue before testing beta1. I didn't notice the release.
> DefaultHttpAsyncClient does not follows redirects when remote site closes connection
> ------------------------------------------------------------------------------------
>
> Key: HTTPASYNC-14
> URL: https://issues.apache.org/jira/browse/HTTPASYNC-14
> Project: HttpComponents HttpAsyncClient
> Issue Type: Bug
> Affects Versions: 4.0-alpha3
> Environment: Windows 7 x64, Java HotSpot(TM) 64-Bit Server VM (build 20.0-b11, mixed mode)
> Reporter: Thiago Souza
> Priority: Blocker
> Fix For: 4.0-beta1
>
>
> When a site sends a redirect while closing connection the redirect is not followed, the passed FutureCallback receives "cancelled()" and future.get() returns null.
> The following reproduces the error:
> public class Test implements FutureCallback<HttpResponse>
> {
> public static void main(String[] args) throws Exception
> {
> HttpAsyncClient httpclient = new DefaultHttpAsyncClient();
> httpclient.start();
> HttpGet request = new HttpGet("http://www.comprafacil.com.br/comprafacil/pages/viewProduct.jsf?VP=5wohvWvi8jgV60Cm%2FVhQr8FTEIJoz9WA&VPP=FREEZER+VERTICAL+246+LTS+CVU30D+CONSUL");
> System.out.println(httpclient.execute(request, new Test()).get());
> System.out.println("Done");
> }
> public void completed(HttpResponse result)
> {
> System.out.println("completed");
> }
> public void failed(Exception ex)
> {
> System.out.println("failed");
> }
> public void cancelled()
> {
> System.out.println("cancelled");
> }
> }
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org