[JBoss JIRA] Created: (NETTY-319) HttpMessageDecoder incorrect parsing status line
Minas Abramyan (JIRA)
jira-events at lists.jboss.org
Tue May 25 23:12:54 EDT 2010
HttpMessageDecoder incorrect parsing status line
------------------------------------------------
Key: NETTY-319
URL: https://jira.jboss.org/browse/NETTY-319
Project: Netty
Issue Type: Bug
Environment: Sun Java Application Server 9.1
Reporter: Minas Abramyan
Assignee: Trustin Lee
Fix For: 3.1.5.GA
I'm working with Sun Java Application Server 9.1, server sends status line like this:
"HTTP/1.1 404 "
I have exception in HttpMessageDecoder, because
cStart=13
cEnd=12
558: cStart = findNonWhitespace(sb, bEnd);
cEnd = findEndOfString(sb);
return new String[] {
sb.substring(aStart, aEnd),
sb.substring(bStart, bEnd),
sb.substring(cStart, cEnd) };
RFC 2616:
6.1.1:
Reason-Phrase = *<TEXT, excluding CR, LF>
2.1:
*rule
The character "*" preceding an element indicates repetition. The full form is "<n>*<m>element" indicating at least <n> and at most <m> occurrences of element. Default values are 0 and infinity so that "*(element)" allows any number, including zero; "1*element" requires at least one; and "1*2element" allows one or two.
I suggest, something like this:
if (cStart > cEnd) {
cEnd = cStart;
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the netty-dev
mailing list