[Mono-bugs] [Bug 333985] New: FtpWebRequest cannot put file properly.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Oct 15 12:22:03 EDT 2007


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

           Summary: FtpWebRequest cannot put file properly.
           Product: Mono: Class Libraries
           Version: 1.2
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at ximian.com
        ReportedBy: wasabi at larvalstage.net
         QAContact: mono-bugs at ximian.com
          Found By: ---


When attempting to simply put a file on a ftp server I get an error that
permission is denied. I do not get this error when using MS.Net.

The problem is in short. If you view the Ftp conversation for MS.Net,  you can
see it does the following:

a) logs in
b) PWD
c) CWD's to the result of PWD
d) STOR filename

If you view Mono's traffic, you see:

a) logs in
e) STOR /filename

I can't figure out a purpose to step b) and c). Probably just there to verify
that the server is sane. The STOR command is not prefixed with / however. It
considers the uploaded file name to be relative to the default directory of the
ftp user.

This is probably a matter of replacing LocalPath with LocalPath.Remove(0, 1) in
FtpWebRequest/OpenDataConnection.


-- 
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