Bug 12850 - FtpWebRequest does not handle remote paths properly
Summary: FtpWebRequest does not handle remote paths properly
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: System (show other bugs)
Version: 2.10.x
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Miguel de Icaza [MSFT]
URL:
Depends on:
Blocks:
 
Reported: 2013-06-24 13:00 UTC by Bryan Moulton
Modified: 2013-06-24 13:00 UTC (History)
1 user (show)

See Also:
Tags:
Is this bug a regression?: ---
Last known good build:


Attachments

Description Bryan Moulton 2013-06-24 13:00:36 UTC
Related to case #38642
https://bugzilla.novell.com/show_bug.cgi?id=698551

The culprit is here:
https://github.com/mono/mono/blob/master/mcs/class/System/System.Net/FtpWebRequest.cs#L560

It looks like the code is ignoring the last part of the path name because of this line. For file commands this is fine, but if it is a List command the whole path needs to be included.

Note You need to log in before you can comment on or make changes to this bug.