Bug 21018 - CharConversionException
Summary: CharConversionException
Status: RESOLVED WORKSFORME
Alias: None
Product: Tomcat 5
Classification: Unclassified
Component: Connector:Coyote (show other bugs)
Version: Nightly Build
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-23 15:47 UTC by Michael Enke
Modified: 2004-11-16 19:05 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Enke 2003-06-23 15:47:34 UTC
If I have a %25 as part of the request (%25 is the percent sign), I get this
exception:

java.io.CharConversionException: EOF
        at org.apache.tomcat.util.buf.UDecoder.convert(UDecoder.java:119)
        at org.apache.tomcat.util.buf.UDecoder.convert(UDecoder.java:87)
        at
org.apache.tomcat.util.http.Parameters.processParameters(Parameters.java:408)
        at
org.apache.tomcat.util.http.Parameters.processParameters(Parameters.java:495)
        at
org.apache.tomcat.util.http.Parameters.handleQueryParameters(Parameters.java:278)
        at
org.apache.coyote.tomcat4.CoyoteRequest.parseRequestParameters(CoyoteRequest.java:1933)
        at
org.apache.coyote.tomcat4.CoyoteRequest.getParameter(CoyoteRequest.java:911)
        at
org.apache.coyote.tomcat4.CoyoteRequestFacade.getParameter(CoyoteRequestFacade.java:178)
        at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1062)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
Comment 1 Bill Faulk 2004-02-16 18:01:43 UTC
I get the same error on Tomcat 4.1.29 whenever a parameter contains a percent 
sign. Specifically, request.getParameter generates 
the "java.io.CharConversionException: EOF" if the parameter value contains a 
percent sign. This can happen with both GET and POST form methods. I don't 
believe encoding the URL isn't an option even if it would work.
Comment 2 Bill Faulk 2004-02-16 18:03:49 UTC
Additional information: I am running Windows 2000 Server. The same error was 
previously reported for URL forwards.

 http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3986
Comment 3 Mark Thomas 2004-06-19 12:24:19 UTC
This bug report has been transferred to Tomcat 5 because TC4 and TC5 share the 
connectors and TC5 is now the focus of development effort
Comment 4 Mark Thomas 2004-06-19 15:43:11 UTC
If you re-open this, please provide a test case as I can't reproduce it.