Bug 195677

Summary: [ftp] Rename fails on WFTPD-2.03
Product: [Tools] Target Management Reporter: Martin Oberhuber <mober.at+eclipse>
Component: RSEAssignee: Javier Montalvo Orús <javier.montalvoorus>
Status: RESOLVED FIXED QA Contact: Martin Oberhuber <mober.at+eclipse>
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: 2.0.1   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Path showing file name only in the RNFR command mober.at+eclipse: iplog-

Description Martin Oberhuber CLA 2007-07-06 13:22:01 EDT
Connect to a WFTPD-2.03 FTP Server and try a rename operation.
The FTP Log shows:

CWD I:\tmp/plugtmp
250 "I:\tmp\plugtmp" is current directory

RNFR I:\tmp/plugtmp\OLContent
450 You may only rename files in the current directory.

In fact, passing the full path of the file to rename is unnecessary here, so why not do what the FTP server wants and pass a plain file name for RNFR. The CWD is the correct one already since the RNTO only accepts plain file names anyways...
Comment 1 Javier Montalvo Orús CLA 2007-07-17 13:29:58 EDT
Created attachment 73977 [details]
Path showing file name only in the RNFR command

Agree, now that CWD is set we don't need to specify absolute paths. It works fine with my WinNT server, I'll try with other servers before submitting it. Could you verify it works fine ?
Comment 2 Martin Oberhuber CLA 2007-07-18 09:35:45 EDT
The patch is simple enough that I'm confident it will work without me testing.
Comment 3 Javier Montalvo Orús CLA 2007-07-25 13:44:30 EDT
Patch applied
Comment 4 Martin Oberhuber CLA 2012-05-23 17:16:04 EDT
Comment on attachment 73977 [details]
Path showing file name only in the RNFR command

iplog- since Javier was committer since Aug 2006 already:
http://dev.eclipse.org/mhonarc/lists/dsdp-tm-dev/msg00375.html