[Mono-bugs] [Bug 471216] New: System.Net.WebException thrown when downloading a file from ftp server using FtpWebRequest

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Jan 30 17:59:43 EST 2009


https://bugzilla.novell.com/show_bug.cgi?id=471216


           Summary: System.Net.WebException thrown when downloading a file
                    from ftp server using FtpWebRequest
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.2.x
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: sdasari at rccny.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Created an attachment (id=269039)
 --> (https://bugzilla.novell.com/attachment.cgi?id=269039)
Attached is the sample source code that reproduces the exception

User-Agent:       Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1;
NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.21022; .NET CLR
3.5.30729; .NET CLR 3.0.30618)

Following exception is thrown when trying to file download a file from windows
ftp server:
Unhandled Exception: System.Net.WebException: Server returned an error: 550 /"
is current directory/: The filename, directory name, or volume label syntax is
incorrect. 
  at System.Net.FtpWebRequest.CWDAndSetFileName (System.Uri uri) [0x00000] 
  at System.Net.FtpWebRequest.ProcessMethod () [0x00000] 
  at System.Net.FtpWebRequest.ProcessRequest () [0x00000] 

Attached in the attachment is the sample source code that reproduces the
exception.



Reproducible: Always

Steps to Reproduce:
1.
2.
3.
Actual Results:  
System.Net.WebException is thrown.

Expected Results:  
File content will be downloaded

Looking the interaction between the ftp client and the sever following seems to
be happening.

Client sends: PWD
Server sends: 257 “/” is current directory.
Client sends: CWD /” is current directory/
Server sends: 550 /” is current directory/: The filename, directory name, or
volume label syntax in incorrect.

At this point exception seen to be thrown with error description which is
retuned from the server.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list