[Mono-bugs] [Bug 41082][Nor] New - FileStream does not always check access before reading or writing
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
Thu, 10 Apr 2003 02:24:49 -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 gert.driesen@pandora.be.
http://bugzilla.ximian.com/show_bug.cgi?id=41082
--- shadow/41082 Thu Apr 10 02:24:49 2003
+++ shadow/41082.tmp.11409 Thu Apr 10 02:24:49 2003
@@ -0,0 +1,30 @@
+Bug#: 41082
+Product: Mono/Class Libraries
+Version: unspecified
+OS:
+OS Details: 2003
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: gert.driesen@pandora.be
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: FileStream does not always check access before reading or writing
+
+Description of Problem:
+
+The System.IO.FileStream class does not always check if reading or writing
+is supported for the current filestream.
+
+When CanWrite is false, a NotSupportedException should be thrown when
+trying to write. (according to MS docs)
+
+When CanRead is false, a NotSupportedException should be thrown when
+trying to read. (according to MS docs)
+
+I'll attach a patch that fixes this.