You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Emmanuel Lecharny (JIRA)" <ji...@apache.org> on 2014/09/04 19:34:53 UTC

[jira] [Resolved] (DIRMINA-956) Status code match bug in AbstractHttpLogicHandler

     [ 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)