[Mono-bugs] [Bug 60304][Blo] New - Method Directory.GetFiles("Path") fails miserably.

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 16 Jun 2004 14:50:48 -0400 (EDT)


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 infodate@aster.pl.

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

--- shadow/60304	2004-06-16 14:50:48.000000000 -0400
+++ shadow/60304.tmp.13392	2004-06-16 14:50:48.000000000 -0400
@@ -0,0 +1,49 @@
+Bug#: 60304
+Product: Mono: Class Libraries
+Version: unspecified
+OS: Windows XP
+OS Details: SP1 PL fully patched .NET v1.1 Mono-Beta2
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Blocker
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: infodate@aster.pl               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Method Directory.GetFiles("Path") fails miserably.
+
+Description of Problem:
+Static method Directory.GetFiles("DirectoryPath") fails throwing an 
+exception:
+
+Argument cannot be null.
+Parameter name: path2
+in <0x00061> System.IO.Path:Combine (string,string)
+in <0x003f9> System.IO.Directory:GetFileSystemEntries 
+(string,string,System.IO.FileAttributes,System.IO.FileAttributes)
+in <0x00018> System.IO.Directory:GetFiles (string,string)
+in <0x00010> System.IO.Directory:GetFiles (string)
+
+
+Steps to reproduce the problem:
+1. Call method with directory path containing spaces (not escaped).
+2. Check for exceptions
+
+Actual Results:
+Method throws exception.
+
+Expected Results:
+Strong[] containing files in given directory returned.
+
+
+How often does this happen? 
+Everytime test is run.
+
+
+Additional Information:
+Failure of this method brings a big question mark for reliability of most 
+important element of BCL being corlib.