[Mono-bugs] [Bug 698551] New: FtpWebRequest: ListDirectory/ListDirectoryDetails discard the filename

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Jun 7 10:35:03 EDT 2011


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

https://bugzilla.novell.com/show_bug.cgi?id=698551#c0


           Summary: FtpWebRequest: ListDirectory/ListDirectoryDetails
                    discard the filename
    Classification: Mono
           Product: Mono: Class Libraries
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: doc.formatique at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Created an attachment (id=433288)
 --> (http://bugzilla.novell.com/attachment.cgi?id=433288)
Obvious-looking patch

User-Agent:       Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.1 (KHTML,
like Gecko) Ubuntu/11.04 Chromium/14.0.785.0 Chrome/14.0.785.0 Safari/535.1

Test case:

using System;
using System.Net;

class Program {
    static void Main() {
        var requestUriString = new Uri("ftp://ftp.debian.org:/debian/README");
        var ftp = (FtpWebRequest)WebRequest.Create(requestUriString);
        ftp.Method = WebRequestMethods.Ftp.ListDirectory;
        using (var resp = (FtpWebResponse)ftp.GetResponse())
        using (var reader = new
System.IO.StreamReader(resp.GetResponseStream())) {
            Console.Write(reader.ReadToEnd());
        }
    }
}

Reproducible: Always

Steps to Reproduce:
1. Run the test case :-)

Actual Results:  
README
README.CD-manufacture
README.html
README.mirrors.html
README.mirrors.txt
dists
doc
indices
ls-lR.gz
ls-lR.patch.gz
pool
project
tools


Expected Results:  
README

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