You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by bu...@apache.org on 2003/02/07 02:09:05 UTC
DO NOT REPLY [Bug 16864] New: -
NullPointerException thrown when invalid header encountered
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16864>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16864
NullPointerException thrown when invalid header encountered
Summary: NullPointerException thrown when invalid header
encountered
Product: Commons
Version: Nightly Builds
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: Other
Component: HttpClient
AssignedTo: commons-httpclient-dev@jakarta.apache.org
ReportedBy: adrian@ephox.com
If a server returns a header with no name but with a value (ie: an invalid line in the headers), HttpClient throws a NullPointerException instead of just skipping that header line or perhaps treating it as a continuation of the previous header (need to consult the RFC to confirm this).
Problem reported by Eduardo Francos on the commons-user list.
A good test URL for this problem is:
http://www.pc.ibm.com/us/accessories/monitors/p_allmodelos.html
which should return a 404 error but throws the NullPointerException instead.