Skip to content
This repository has been archived by the owner on Mar 20, 2021. It is now read-only.

servet request parameters are not decoded properly #1991

Closed
caim2015 opened this issue Jan 12, 2018 · 1 comment
Closed

servet request parameters are not decoded properly #1991

caim2015 opened this issue Jan 12, 2018 · 1 comment

Comments

@caim2015
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants