cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 9376] New: - HttpRequest.getParameter(..) can fail with NPE when characterencoding is set
Date Fri, 24 May 2002 08:51:40 GMT
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=9376>.
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=9376

HttpRequest.getParameter(..) can fail with NPE when characterencoding is set

           Summary: HttpRequest.getParameter(..) can fail with NPE when
                    characterencoding is set
           Product: Cocoon 2
           Version: Current CVS
          Platform: All
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: core
        AssignedTo: cocoon-dev@xml.apache.org
        ReportedBy: jd@neupart.dk


The org.apache.cocoon.environment.http.HttpRequest class malfunctions when the
characterencoding is set and a parameter is being requested that is not in the
underlying request object from the web container.

The reason being that if the character encoding is set in the HttpRequest
object, a private method called encode is called with the parameter retrieved
from the web container request object; this can be null! and this null condition
is not checked for in HttpRequest.java.

I hope this is the way to submit patches to bugzilla - if not, bear over with me.

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message