FtpWebRequest not working correct on Xamarin.Mac?

ThomasFlemmingThomasFlemming DEMember ✭✭
edited November 2017 in Xamarin.Mac

I have a cross-platform project targeting Winforms and Xamarin.Mac sharing code. It uses System.Net.FtpWebRequest to list files on a remote device running a ftp-server. It works fine for the Winform-project but not as expected on the Mac side:

Listing the content of a directory on the ftp-server:

var ftprequest= new FtpWebRequest.Create("ftp://192.168.188.21:1234/QVM_Data");
ftprequest.Method =Ftp.ListDirectoryDetails;

From Winforms the ftp-server receives this commands:

[0:] USER QvX
[0:] PASS
[0:] OPTS utf8 on
[0:] PWD
[0:] TYPE I
[0:] PASV
[0:] LIST QVM_Data
[0:] QUIT

and the listing of folder QVM_Data is properly returned.

On the Mac-side, the server receives this commands:

[0:] USER QvX
[0:] PASS
[0:] OPTS utf8 on
[0:] PWD
[0:] CWD /
[0:] TYPE I
[0:] PASV
[0:] LIST
[0:] QUIT

which is different, specially the pathname, which must be listed, is missing.

Any ideas?

Answers

  • ThomasFlemmingThomasFlemming DEMember ✭✭

    just found this bug:
    https://bugzilla.xamarin.com/show_bug.cgi?id=12850

    Is it really still open? After 4 years?

  • ChrisHamonsChrisHamons USXamarin Team Xamurai

    I understand the frustration, but let me add a bit of explanation.

    • As it is a bug in the class library, not Xamarin.Mac specific, this is a mono bug. This doesn't change your complaint, but is useful context.
    • Mono's class library has a huge surface area, and there is a non-trivial backlog of bugs, prioritized by usage.
    • The area of code related to this bug has not been touched since 2016, with only one major commit.
    • I've updated the bug to help routing.

    Sorry for the trouble.

  • ThomasFlemmingThomasFlemming DEMember ✭✭

    Thanks, but why do I read between the lines, that there is not much chance, that this will be fixed?

  • ChrisHamonsChrisHamons USXamarin Team Xamurai

    I wouldn't exactly put it that way, but the component in question is outside of my domain, so I can't give too much detailed information.

    I've updated the bug and poked the relevant team. Consider adding yourself as a CC on the bug if you are interested in updates.

Sign In or Register to comment.