[JBoss JIRA] Updated: (NETTY-231) java.lang.StringIndexOutOfBoundsException in HttpMessageDecoder
John Slave (JIRA)
jira-events at lists.jboss.org
Sun Sep 27 09:44:49 EDT 2009
[ https://jira.jboss.org/jira/browse/NETTY-231?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
John Slave updated NETTY-231:
-----------------------------
Description: 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. (was: 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 return 8 as startValue instead of 7. It seems to me that the loop increments the variable even if the character is a whitespace. )
> 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