[Mono-bugs] [Bug 55348][Maj] New - File.GetAttributes(path) does not throw PathTooLongException
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Tue, 9 Mar 2004 05:45:01 -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=55348
--- shadow/55348 2004-03-09 05:45:01.000000000 -0500
+++ shadow/55348.tmp.28723 2004-03-09 05:45:01.000000000 -0500
@@ -0,0 +1,49 @@
+Bug#: 55348
+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: File.GetAttributes(path) does not throw PathTooLongException
+
+Description of Problem:
+File.GetAttributes(path) does not throw PathTooLongException
+
+Steps to reproduce the problem:
+1. call File.GetAttributes(path) with src/dest path having more than 286
+chars
+
+string path ="abcdefghijklmnopqrstuvwxyz"
+path=path+path+path+path+path+path+path+path+path+path+path;
+ [Test]
+ [ExpectedException (typeof (PathTooLongException))]
+ public void FileGetAttributes()
+ {
+ try
+ {
+ FileAttributes attrs= File.GetAttributes
+(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