Topic "rm command in script fails in 5.5.5"

Author Message
Jan Jansen

Guest


Hello,
I found a bug with the command rm in version 5.5.5 for example in the script
open ftp://user:pass@127.0.0.1 -passive=on
cd subdironftp
rm fileonftp.txt
exit

the rm command gets first the properties of the file, but looks into the root folder (MLST /fileonftp.txt, not in the subdironftp. That's why you get the log Can't get attributes of file.... If I use rm subdironftp/fileonftp.txt then it gets the properties, but the delete statement afterwards on the ftp server fails, because it can't find the file subdironftp/subdironftp/fileonftp.txt.

After that I downloaded version 5.6.1 beta, and that works ok with the rm command.

Best regards,
Jan Jansen
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Please attach a full log file showing the problem (using the latest version of WinSCP).

To generate log file, use /log=path_to_log_file command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.

Also, can you send me an email, so I can send you back a dev version of WinSCP to test? Please include link back to this topic in your email. Also note in this topic that you have sent the email. Thanks.

You will find my address (if you log in) in my forum profile.
Jan Jansen
[View user's profile]

Joined: 2014-09-25
Posts: 1
Hello,
In the attachments you will find a log with version 5.5.5 and another log with the beta version of 5.6.1
and also the script.
So the problem is allready solved with the beta version.
Thanks for your response.
Best regards,
Jan Jansen.
expftpscript.txt (179 Bytes) [Download]

Description: ftp script wit rm command

result5.6.1.log (7.07 KB) [Download]

Description: log of rm command with version 5.6.1

result5.5.5.log (4.92 KB) [Download]

Description: log of rm command with version 5.5.5

martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Jan Jansen wrote:
So the problem is allready solved with the beta version.

Actually, it's probably caused by an absence of this "bug fix" in the beta version:
http://winscp.net/tracker/show_bug.cgi?id=1199
Should be really fixed in 5.5.6 by this:
http://winscp.net/tracker/show_bug.cgi?id=1222
I'm sending you a dev version that includes both fixes. Can you kindly repeat your test with that?
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License