[Mono-bugs] [Bug 491590] New: The FTPWebRequest class doesn't properly resume file downloads
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Apr 2 13:16:11 EDT 2009
http://bugzilla.novell.com/show_bug.cgi?id=491590
Summary: The FTPWebRequest class doesn't properly resume file
downloads
Classification: Mono
Product: Mono: Class Libraries
Version: 2.4.x
Platform: Macintosh
OS/Version: Mac OS X 10.5
Status: NEW
Severity: Major
Priority: P5 - None
Component: System
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: josecoig at cae.net
QAContact: mono-bugs at lists.ximian.com
Found By: ---
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0;
Trident/4.0; GTB5; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR
3.5.30729; .NET CLR 3.0.30618)
When trying to resume a download from an ftp server using the "ContentOffset"
property, the response stream returns the whole requested file, from its
beginning.
Reproducible: Always
Steps to Reproduce:
This is the source code to reproduce the error:
FtpWebRequest ftp = (FtpWebRequest)FtpWebRequest.Create (ftpPath);
ftp.Credentials = new NetworkCredential (user, password);
ftp.Proxy = this.proxy;
ftp.Method = WebRequestMethods.Ftp.DownloadFile;
ftp.ContentOffset = offset;
FTPWebResponse response = (FtpWebResponse)ftp.GetResponse ();
Stream s = response.GetResponseStream ();
Actual Results:
The stream starts at byte 0 of the requested file.
Expected Results:
The stream should start at byte "offset".
I have observed this behaviour running on Mac OS X 10.5, and connecting to a
Windows FTP Server which has specific home directories for each FTP user. I
don't know if the problem occurs in other client operating systems, or with
different FTP server configurations.
--
Configure bugmail: http://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