Bug 195677 - [ftp] Rename fails on WFTPD-2.03
Summary: [ftp] Rename fails on WFTPD-2.03
Status: RESOLVED FIXED
Alias: None
Product: Target Management
Classification: Tools
Component: RSE (show other bugs)
Version: 2.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 2.0.1   Edit
Assignee: Javier Montalvo Orús CLA
QA Contact: Martin Oberhuber CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-06 13:22 EDT by Martin Oberhuber CLA
Modified: 2012-05-23 17:16 EDT (History)
0 users

See Also:


Attachments
Path showing file name only in the RNFR command (1.01 KB, patch)
2007-07-17 13:29 EDT, Javier Montalvo Orús CLA
mober.at+eclipse: iplog-
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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