[Mono-bugs] [Bug 80914][Nor] New - Cannot delete file on FTP

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Feb 20 17:11:53 EST 2007


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 lammothmrc at yahoo.it.

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

--- shadow/80914	2007-02-20 17:11:53.000000000 -0500
+++ shadow/80914.tmp.25131	2007-02-20 17:11:53.000000000 -0500
@@ -0,0 +1,90 @@
+Bug#: 80914
+Product: Mono: Class Libraries
+Version: 1.2
+OS: 
+OS Details: ubuntu :: kernel 2.6
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: System
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: lammothmrc at yahoo.it               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Cannot delete file on FTP
+
+Description of Problem:
+All of the FtpWebRequest commands (download, upload, etc) work fine, except
+the DeleteFile (DELE), which throws a "NotImplementedException". I've
+reported this bug only because I read that the FtpWebRequest is considered
+to be 100% completed... If I'm wrong, please ignore this bug ;-)
+
+Thanks,Marco
+
+
+Steps to reproduce the problem:
+1. Edit the test code to set the appropriate FTP params
+2. Compile and run
+
+
+Actual Results:
+When trying to delete the file this exception is thrown:
+Support for command DELE not implemented yet
+
+   at System.Net.FtpWebRequest.ProcessMethod () [0x00000] 
+
+   at System.Net.FtpWebRequest.ProcessRequest () [0x00000] 
+
+
+Expected Results:
+The file should be deleted on the FTP server
+
+
+How often does this happen? 
+Always
+
+
+Additional Information:
+Sample code:
+
+// -- START --
+using System;
+
+using System.Net;
+
+
+
+namespace ConsoleApplication
+
+{
+
+    internal class Test
+
+    {
+
+        private static void Main(string[] args)
+
+        {
+
+            FtpWebRequest request =
+(FtpWebRequest)WebRequest.Create("ftp://127.0.0.1/file_to_delete.txt");
+
+            request.Credentials = new NetworkCredential("login", "password");
+
+            request.Method = WebRequestMethods.Ftp.DeleteFile;
+
+            
+
+            // Here the exception is thrown!
+
+            request.GetResponse().Close();
+
+        }
+
+    }
+
+}
+// -- END --


More information about the mono-bugs mailing list