atom feed5 messages in org.apache.tomcat.usersPOST data (single character) cleared ...
FromSent OnAttachments
kitagawaJan 15, 2012 6:10 pm 
Konstantin KolinkoJan 15, 2012 6:18 pm 
kitagawaJan 22, 2012 9:19 pm 
Konstantin KolinkoFeb 2, 2012 3:24 am 
kitagawaFeb 6, 2012 4:20 pm 
Subject:POST data (single character) cleared when using tomcat 6.0.33 and Character Encoding Filter
From:kitagawa (kita@gmail.com)
Date:Jan 15, 2012 6:10:37 pm
List:org.apache.tomcat.users

Hi, I'm new to this but please direct me if I'm posting to the wrong list.

While developing using ubuntu 11.04, tomcat 6.0.33 and java 1.5 I ran into a problem after setting the character encoding filter for requests. When posting a request, the value of any field with only a single character submitted is cleared.

I also tested this issue with: tomcat 6.0.32 and java 1.5 (no problem) tomcat 6.0.35 and java 1.5 (same error occured) tomcat 6.0.33 and java 1.6 (no problem) tomcat 6.0.35 and java 1.6 (no problem)

This can be repeated using the RequestParamExample that comes with tomcat.

1. uncomment the "Set Character Encoding" line in apache-tomcat-6.0.33\webapps\examples\WEB-INF\web.xml (lines 88 and 93) 2. start tomcat 3. go to http://localhost:8080/examples/servlets/servlet/RequestParamExample and enter a single character into the first or last name fields then post.

The entered value does not show up. Instead, the value shows up blank. If I enter two characters they appear correctly.

I searched online for a solution but only came up with the following from tomcat bugzilla https://issues.apache.org/bugzilla/show_bug.cgi?id=51773

Does anyone know a solution to this problem?

thank you