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=40215>. 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=40215 Summary: org.apache.xml.internal.security.utils.Base64 is not working in EBCDIC platform Product: Security Version: Java 1.3 Platform: Other OS/Version: other Status: NEW Severity: normal Priority: P2 Component: Signature AssignedTo: security-dev@xml.apache.org ReportedBy: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] The method org.apache.xml.internal.security.utils.Base64.decode(String) is not working in NOT ASCII platform. Now the method are using String.getBytes() without take care of the default charset of the platform (EBCDIC in my case). I have made a change, and now is working perfectly in different platforms. Thanks very much for your wonderful effort !! Best Regards. AC. public final static byte[] decode(String encoded) throws Base64DecodingException { byte[] base64Byte; if (encoded == null) return null; try{ base64Byte = decodeInternal(encoded.getBytes("ISO-8859-1")); } catch (UnsupportedEncodingException e){ throw new Base64DecodingException ("charset ISO-8859-1 is not supported " + e); } return base64Byte; } -- 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.