[Mono-bugs] [Bug 54939][Min] New - Convert.FromBase64String doesn't accept NL and LF in the string

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 27 Feb 2004 12:04:09 -0500 (EST)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by spouliot@videotron.ca.

http://bugzilla.ximian.com/show_bug.cgi?id=54939

--- shadow/54939	2004-02-27 12:04:09.000000000 -0500
+++ shadow/54939.tmp.9603	2004-02-27 12:04:09.000000000 -0500
@@ -0,0 +1,44 @@
+Bug#: 54939
+Product: Mono/Class Libraries
+Version: unspecified
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Minor
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: spouliot@videotron.ca               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Convert.FromBase64String doesn't accept NL and LF in the string
+
+Description of Problem:
+Base64 convertion is too rigid. Some characters, like NL and LF, should 
+be ignored during convertion.
+
+
+Steps to reproduce the problem:
+1. Compile attached source
+2. Execute
+
+
+Actual Results (with mono):
+Unhandled Exception: System.FormatException: Invalid format
+in <0x000b5> System.Convert:FromBase64CharArray (char[],int,int)
+in <0x00056> System.Convert:FromBase64String (string)
+in <0x00062> .BAse64WithNL:Main (string[])
+
+Expected Results (with MS):
+15-30
+
+How often does this happen? 
+Always
+
+Additional Information:
+- There might be other characters that should be accepted/ignored in the 
+base64 string.
+- This affects certmgr.exe from loading PEM encoded certificates.