javaee / grizzly

Writing scalable server applications in the Java™ programming language has always been difficult. Before the advent of the Java New I/O API (NIO), thread management issues made it impossible for a server to scale to thousands of users. The Grizzly NIO framework has been designed to help developers to take advantage of the Java™ NIO API.
https://javaee.github.io/grizzly/
Other
222 stars 60 forks source link

servet request parameters are not decoded properly #1991

Closed caim2015 closed 6 years ago

caim2015 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

glassfishrobot commented 6 years ago

Closing this as this issue is migrated to https://github.com/eclipse-ee4j/grizzly/issues/1991