Uploaded image for project: 'MINA'
  1. MINA
  2. DIRMINA-956

Status code match bug in AbstractHttpLogicHandler

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.7
    • 2.0.8
    • None
    • None

    Description

      I found following code in AbstractHttpLogicHandler:

      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);
              }
      ...
      }
      

      Is there

      statusLine[1].matches("^\\d\\d\\d")
      

      should be

      !statusLine[1].matches("^\\d\\d\\d")
      

      ?

      Attachments

        Activity

          People

            elecharny Emmanuel L├ęcharny
            kimshen Kim
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: