[Mono-bugs] [Bug 71088][Min] Changed - FileInfo.Open(FileMode.Append) traces

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 20 Jan 2005 13:09:35 -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 dick@ximian.com.

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

--- shadow/71088	2005-01-07 10:34:58.000000000 -0500
+++ shadow/71088.tmp.19388	2005-01-20 13:09:35.000000000 -0500
@@ -1,14 +1,14 @@
 Bug#: 71088
 Product: Mono: Class Libraries
 Version: 1.1
-OS: 
+OS: unknown
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Minor
 Component: CORLIB
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: tambet@ximian.com               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
@@ -40,6 +40,33 @@
 in <0x0005b> (wrapper remoting-invoke-with-check) System.IO.FileInfo:Open
 (System.IO.FileMode)
 in <0x00038> Test:Main (string[])
 
 
 Not so using Microsoft corlib (1.1).
+
+------- Additional Comments From dick@ximian.com  2005-01-20 13:09 -------
+I get the exception on the ms runtime:
+
+using System.IO;
+ 
+public class foo {
+        public static void Main() {
+                FileInfo f = new FileInfo ("foo");
+                FileStream s = f.Open (FileMode.Append);
+        }
+}
+
+ 
+Unhandled Exception: System.ArgumentException: Append access can be
+requested only in write-only mode.
+   at System.IO.FileStream..ctor(String path, FileMode mode,
+FileAccess access, FileShare share, Int32 bufferSize, Boolean
+useAsync, String msgPath, Boolean bFromProxy)
+   at System.IO.FileStream..ctor(String path, FileMode mode,
+FileAccess access, FileShare share)
+   at System.IO.FileInfo.Open(FileMode mode, FileAccess access,
+FileShare share)   at System.IO.FileInfo.Open(FileMode mode)
+   at foo.Main()
+
+(Microsoft (R) .NET Framework version 1.1.4322, which is 1.1 iirc)
+