[ 
https://issues.apache.org/jira/browse/DIRMINA-956?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Emmanuel Lecharny resolved DIRMINA-956.
---------------------------------------
       Resolution: Fixed
    Fix Version/s: 2.0.8

Good catch !

Fix applied with commit d43c7e7dea38bbc27852cd621f9a8dd0056379c0

> Status code match bug in AbstractHttpLogicHandler 
> --------------------------------------------------
>
>                 Key: DIRMINA-956
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-956
>             Project: MINA
>          Issue Type: Bug
>    Affects Versions: 2.0.7
>            Reporter: Kim
>            Assignee: Emmanuel Lecharny
>             Fix For: 2.0.8
>
>
> I found following code in AbstractHttpLogicHandler:
> {code}
> protected HttpProxyResponse decodeResponse(final String response) throws 
> Exception {
> ...
>         // Status code is 3 digits
>         if (statusLine[1].matches("^\\d\\d\\d")) {
>             throw new Exception("Invalid response code (" + statusLine[1] + 
> "). Response: " + response);
>         }
> ...
> }
> {code}
> Is there 
> {code}
> statusLine[1].matches("^\\d\\d\\d")
> {code} 
> should be 
> {code}
> !statusLine[1].matches("^\\d\\d\\d")
> {code}
> ?



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

Reply via email to