[Mono-bugs] [Bug 74956][Nor] New - GetDirectories doesn't return all results under mod_mono

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun May 15 06:09:50 EDT 2005


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 shaun.dodimead at spacething.org.

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

--- shadow/74956	2005-05-15 06:09:50.000000000 -0400
+++ shadow/74956.tmp.363	2005-05-15 06:09:50.000000000 -0400
@@ -0,0 +1,75 @@
+Bug#: 74956
+Product: Mono: Class Libraries
+Version: unspecified
+OS: 
+OS Details: Fedora Core 3
+Status: NEW   
+Resolution: 
+Severity: Unknown
+Priority: Normal
+Component: Sys.Web
+AssignedTo: gonzalo at ximian.com                            
+ReportedBy: shaun.dodimead at spacething.org               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: GetDirectories doesn't return all results under mod_mono
+
+Description of Problem:
+
+When iterating through directories using something like the following:
+
+string BrowsePath = "/var/www/html/mp3/";
+DirectoryInfo di = new DirectoryInfo(path);
+
+if (di.Exists)
+
+{				
+
+	DirectoryInfo[] subDirs = di.GetDirectories();
+
+	if (subDirs.Length>0) 
+
+	{
+
+		foreach (DirectoryInfo di2 in subDirs) 
+
+		{
+
+			System.Console.WriteLine(di2.Name);
+
+		}
+
+
+	}
+
+}
+
+Under XSP or as a straight CLI app this works fine, however when running
+under mod_mono only some of the results make it into subDirs, there doesn't
+seem to be any logic to it, all the folders have the same permissions. 
+
+Steps to reproduce the problem:
+1. Create a webservice or aspx page that dumps a directories sub folders
+using something like the above
+2. Confirm that when using XSP it displays all the directories
+3. Switch to mod_mono and see if return only some of the directories
+
+Actual Results:
+Well, as I can't find a sensible reason behind why it would only return som
+e (although permissions are the potential culprit, as I said all the
+folders have the same permissions) the results may vary, however I'm
+definitely seeing the same code under mod_mono return different results to
+running under XSP.
+
+
+Expected Results:
+Both return identical results
+
+How often does this happen? 
+Everytime on my system, however as said, not sure what the factor is
+between mod_mono and xsp, and my system.
+
+Additional Information:
+The folder i'm interrogating is in the HTTP path


More information about the mono-bugs mailing list