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 2004/06/28 12:03:00 UTC

DO NOT REPLY [Bug 29836] New: - Problems with EBCDIC host

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=29836>.
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=29836

Problems with EBCDIC host

           Summary: Problems with EBCDIC host
           Product: Tomcat 5
           Version: 5.0.25
          Platform: Other
               URL: http://127.0.0.1:8080/admin/index.jsp
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Webapps:Administration
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: Dirk.Schwartzkopff@gmx.de


Platform: IBM mainframe zSeries
OS: z/OS 1.4
Tomcat Version 4.1.30, 5.0.25
URLEncoder uses EBCDIC (the platform encoding) to translate the characters. The
result is
http://127.0.0.1/admin/users/listRoles.do?databaseName=Users%7Atype%7EUserDatabase%6Bdatabase%7EUserDatabase&forward=Roles+List+Setup
instead of
http://127.0.0.1/admin/users/listRoles.do?databaseName=Users%3Atype%3DUserDatabase%2Cdatabase%3DUserDatabase&forward=Roles+List+Setup

Bill Barker sended me the following email regarding this problem:
Looking at the admin webapp, is seems that it is using java.net.URLEncoder
instead of o.a.c.u.URLEncoder.  The javadocs for the java.net class say that it
has exactly the problem that you are describing (i.e. it uses the platform
encoding).  
 
The fix is to either use java.net.URLEncoder.encode(..., "utf8") (with the
downside that the admin webapp can't be used with a 1.3 JVM), or to use
o.a.c.u.URLEncoder as a Bean (since the encode method isn't static).  In either
case, I guess you get to open a new bug report for this :).

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