[Mono-bugs] [Bug 55340][Maj] New - Directory.GetDirectoriesRoot(path) does not throw PathTooLongException
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Tue, 9 Mar 2004 04:15:34 -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 nrathna@novell.com.
http://bugzilla.ximian.com/show_bug.cgi?id=55340
--- shadow/55340 2004-03-09 04:15:34.000000000 -0500
+++ shadow/55340.tmp.27542 2004-03-09 04:15:34.000000000 -0500
@@ -0,0 +1,50 @@
+Bug#: 55340
+Product: Mono: Class Libraries
+Version: unspecified
+OS: Red Hat 8.0
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Major
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: nrathna@novell.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Directory.GetDirectoriesRoot(path) does not throw PathTooLongException
+
+Description of Problem:
+Directory.GetDirectoriesRoot(path) does not throw PathTooLongException
+
+Steps to reproduce the problem:
+1. call irectory.GetDirectoryRoot(path) with path having more than 286
+chars
+
+
+[Test]
+[ExpectedException (typeof (PathTooLongException))]
+public void DirectoryGetDirectoriesRoot()
+{
+ string path ="abcdefghijklmnopqrstuvwxyz";
+ path=path+path+path+path+path+path+path+path+path+path+path;
+ try
+ {
+ String DirRoot = Directory.GetDirectoryRoot(path);
+ }
+ finally {}
+}
+
+Actual Results:
+Does not throw any exception
+
+Expected Results:
+Should throw PathTooLongException
+
+How often does this happen?
+Continous
+
+Additional Information:
+Should check for the path length