ari-ban / issue-test

0 stars 0 forks source link

servet request parameters are not decoded properly #1991

Open arinban opened 6 years ago

arinban commented 6 years ago

My web application is working on Glassfish V4.1.1. The following JSP page has this problem.

<%@ page contentType="text/html; charset=shift_jis" %> Hello:<%= request.getParameter("username")%>.

When you enter some name which consists of 2-byte UTF charaters, the page does not show the entered string properly. The exactly same JSP works fine with V2.

Example of request: http://localhost:28081/5675/ServletFilter?username=%90%D4%90F test result : Hello:赤?F

the test result of V2: Hello:赤色

I hava provided the reproducer(5675.war). 5675.zip

arinban commented 6 years ago