[ 
https://issues.apache.org/jira/browse/FTPSERVER-226?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sai Pullabhotla updated FTPSERVER-226:
--------------------------------------

    Attachment: FTPSERVER-226_patch.txt

Attached is the patch to fix this. I used the existing 550 message on the DELE 
command. The clients receive a reply like this: 

550 Not a valid file "/abc/b/c". 

hope it is alright with you guys. 

I also updated the Delete test case, not very used to writing test cases, but I 
tried :) Hope I did not mess up anything. 

> DELE command deletes directories
> --------------------------------
>
>                 Key: FTPSERVER-226
>                 URL: https://issues.apache.org/jira/browse/FTPSERVER-226
>             Project: FtpServer
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.0.0-M4
>            Reporter: Sai Pullabhotla
>             Fix For: 1.0.0-RC1
>
>         Attachments: FTPSERVER-226_patch.txt
>
>
> DELE command should NOT delete the object if the argument represents a 
> directory. According to the FTP Standards RMD command should be used for 
> deleting directories. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to