Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 95496 invoked by uid 500); 24 May 2002 08:51:28 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 95485 invoked from network); 24 May 2002 08:51:28 -0000 Date: 24 May 2002 08:51:40 -0000 Message-ID: <20020524085140.22594.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: cocoon-dev@xml.apache.org Cc: Subject: DO NOT REPLY [Bug 9376] New: - HttpRequest.getParameter(..) can fail with NPE when characterencoding is set X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . 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