You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/01/02 15:22:39 UTC

[jira] [Commented] (HTTPCLIENT-1710) OSGiRoutePlanner examines only the first proxy exception and also crashes processing IP address exception

    [ https://issues.apache.org/jira/browse/HTTPCLIENT-1710?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15076526#comment-15076526 ] 

ASF GitHub Bot commented on HTTPCLIENT-1710:
--------------------------------------------

Github user ok2c commented on the pull request:

    https://github.com/apache/httpclient/pull/41#issuecomment-168395979
  
    Committed to SVN trunk and 4.5.x branch.
    http://svn.apache.org/viewvc?rev=1722632&view=rev 


> OSGiRoutePlanner examines only the first proxy exception and also crashes processing IP address exception
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-1710
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1710
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpClient
>    Affects Versions: 4.4.1, 4.5, 5.0
>         Environment: OSGi
>            Reporter: munene kiruja
>             Fix For: 5.0
>
>         Attachments: OSGiHttpRoutePlanner.java, TestOSGiHttpRoutePlanner.java
>
>
> The HttpClientBuilderFactory and internal RoutePlanner objects are a fantastic addition since 4.3.
> There are couple minor bugs rendering them unusable at the moment though.
> 1. The OSGiRoutePlanner.determinProxy() method only examines the first proxy exception.
> 2. When OSGiRoutePlanner.determinProxy() is creating a NetworkAddress from a String IP address, it refers to the 6th capture group in a case where there are only four, leading to an out of bounds exception.
> The class file is attached containing fixes for both issues at the 4.4.1 version. I checked and found both issues existing in the trunk (5.0) at the time of this writing.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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