[JBoss JIRA] Closed: (NETTY-231) java.lang.StringIndexOutOfBoundsException in HttpMessageDecoder

Trustin Lee (JIRA) jira-events at lists.jboss.org
Sun Sep 27 20:03:49 EDT 2009


     [ https://jira.jboss.org/jira/browse/NETTY-231?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Trustin Lee closed NETTY-231.
-----------------------------

    Resolution: Duplicate Issue


It's fixed already.  Check out the latest snapshot - http://trustin.dyndns.org/hudson/job/netty-trunk-deploy/

> java.lang.StringIndexOutOfBoundsException in HttpMessageDecoder
> ---------------------------------------------------------------
>
>                 Key: NETTY-231
>                 URL: https://jira.jboss.org/jira/browse/NETTY-231
>             Project: Netty
>          Issue Type: Bug
>          Components: Handler
>    Affects Versions: 3.1.3.GA
>            Reporter: John Slave
>            Assignee: Trustin Lee
>
> I have noticed that trying to use HttpMessageDecoder with www.facebook.com, an header with "Pragma: " (with last char as space) causes a StringIndexOutOfBoundsException. It seems the problem is in findNonWhitespace(String sb, int offset) method that returns 8 as startValue instead of 7. It seems to me that the loop increments the variable even if the character is a whitespace. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the netty-dev mailing list