You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2006/11/13 23:52:52 UTC

DO NOT REPLY [Bug 40964] New: - UTF-8 encodded form params are not handled correctly when using POST

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40964>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40964

           Summary: UTF-8 encodded form params are not handled correctly
                    when using POST
           Product: Tomcat 5
           Version: 5.5.20
          Platform: PC
        OS/Version: other
            Status: NEW
          Severity: major
          Priority: P2
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: sriram.easwaran@sas.com


Setup: 
Added URIEncoding="UTF-8" useBodyEncodingForURI="true" to server.xml and also
used  -Dfile.encoding=UTF-8 java option(jdk1.5) in tomcat startup.  I have also
defined a filter in web.xml which sets the encoding to UTF-8 on every incoming
request.

My page uses a jsp page directive to display  international character which
works correctly. However When i submit international characters from the the
form page using POST my struts action class does not get the correct string.
When i use "GET" it works correctly.

I have googled for help and tried all options (filter, vm flag, connector
settings) but not found a solution yet.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 40964] - UTF-8 encodded form params are not handled correctly when using POST

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40964>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40964





------- Additional Comments From markt@apache.org  2006-11-13 16:52 -------
Created an attachment (id=19122)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=19122&action=view)
Working UTF-8 JSP 

This attachment contains a JSP that allows posting of text in any character set
(I use random Arabic and/or Chinese characters to test it) and then echos them
back to the client.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 40964] - UTF-8 encodded form params are not handled correctly when using POST

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40964>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40964


sriram.easwaran@sas.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |




------- Additional Comments From sriram.easwaran@sas.com  2006-11-14 09:18 -------
I check the form parameter value in a filter even before it hits my struts
servlet and the request encoding is not set to UTF-8 (specified in my jsp just
like your example). Some peope have reported that the FormAuthenticator class
does not honor the encoding set on the jsp when it reconstructs the request. Is
there any way i can augment or work around this?

Does the example jsp you have go through the FormAuthenticator class?

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 40964] - UTF-8 encodded form params are not handled correctly when using POST

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40964>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40964


markt@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




------- Additional Comments From markt@apache.org  2006-11-13 16:57 -------
The demo JSP attached shows that this functionality works. It looks like you
have a struts configuration issue or possibly a struts bug.

I have tested this area extensively in the past and haven't found a bug here for
quite some time.

The tomcat users or struts users mailing lists are the right place to get
further help with this.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 40964] - UTF-8 encodded form params are not handled correctly when using POST

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40964>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40964


markt@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |INVALID




------- Additional Comments From markt@apache.org  2006-11-14 18:42 -------
Yes, the test JSP works with form authentication enabled.

Wherever the bug is, it doesn't appear to be in Tomcat. As I said before, the
Struts / Tomcat users lists are the right place to get help.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org