You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@santuario.apache.org by bu...@apache.org on 2006/08/08 18:19:00 UTC
DO NOT REPLY [Bug 40215] New: - org.apache.xml.internal.security.utils.Base64 is not working in EBCDIC platform
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: acastro.dit@aeat.es
CC: acastro.dit@aeat.es
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.
DO NOT REPLY [Bug 40215] - org.apache.xml.internal.security.utils.Base64 is not working in EBCDIC platform
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=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
------- Additional Comments From raul-info@r-bg.com 2006-08-17 10:01 -------
I have change slightly the solution.
Instead of relaying in the getBytes(coding) method in java.lang.String. I have
code our really simple base64-valid utf16(java representation of char) symbols
to ascii. At the same time a get rid of the whitespaces.
So can you test again in xmlsec-1.4beta2?.
Y muchas gracias por encontrar el problema. (And thnks for finding the bug)
--
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.
DO NOT REPLY [Bug 40215] - org.apache.xml.internal.security.utils.Base64 is not working in EBCDIC platform
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=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
raul-info@r-bg.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |CLOSED
--
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.
DO NOT REPLY [Bug 40215] - org.apache.xml.internal.security.utils.Base64 is not working in EBCDIC platform
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=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
sean.mullan@sun.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
------- Additional Comments From sean.mullan@sun.com 2006-08-10 22:15 -------
Fixed, and thanks for the patch.
--
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.
DO NOT REPLY [Bug 40215] - org.apache.xml.internal.security.utils.Base64 is not working in EBCDIC platform
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=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
acastro.dit@aeat.es changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
--
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.
DO NOT REPLY [Bug 40215] - org.apache.xml.internal.security.utils.Base64 is not working in EBCDIC platform
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=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
------- Additional Comments From acastro.dit@aeat.es 2006-08-09 06:13 -------
Created an attachment (id=18693)
--> (http://issues.apache.org/bugzilla/attachment.cgi?id=18693&action=view)
Base64.decode(String) is not working when is used in not ascii platform
The binary representation of a Byte64 is independent of the platform for this
reason if not possible to use String.getBytes(), we must use something like
Strign.getBytes("ASCII") or String.getBytes("ISO-8859-1"). By example in EBCDIC
platform the actual code is not working properly until this patch is aply.
--
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.
DO NOT REPLY [Bug 40215] - org.apache.xml.internal.security.utils.Base64 is not working in EBCDIC platform
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=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
------- Additional Comments From acastro.dit@aeat.es 2006-08-18 10:29 -------
(In reply to comment #3)
> I have change slightly the solution.
> Instead of relaying in the getBytes(coding) method in java.lang.String. I have
> code our really simple base64-valid utf16(java representation of char) symbols
> to ascii. At the same time a get rid of the whitespaces.
>
> So can you test again in xmlsec-1.4beta2?.
>
> Y muchas gracias por encontrar el problema. (And thnks for finding the bug)
We have tested it with xmlsec-1.4beta2 and works perfectly.
Thanks a lot, best regards A.castro.
--
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.