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

Allen Firstenberg updated FTPSERVER-412:
----------------------------------------

    Attachment: OPTS_MLST.java

Attached is a fix.  All the functions required changes since both the parameter 
parsing did not correctly handle no features, as well as features that were not 
supported, and the return message was not according to spec.

> OPTS MLST does not handle unknown factnames correctly
> -----------------------------------------------------
>
>                 Key: FTPSERVER-412
>                 URL: https://issues.apache.org/jira/browse/FTPSERVER-412
>             Project: FtpServer
>          Issue Type: Bug
>    Affects Versions: 1.0.5
>            Reporter: Allen Firstenberg
>         Attachments: OPTS_MLST.java
>
>
> RFC 3659, section 7.9 states "Facts requested that are not supported, or that 
> are inappropriate to the file or directory being listed should simply be 
> omitted from the MLSx output.  This is not an error.  Note that where no 
> factname arguments are present, the client is requesting that only the file 
> names be returned."
> org.apache.ftpserver.command.impl.OPTS_MLST.validateSelectedTypes() 
> specifically returns null if one of the types requested is not found, and a 
> null return generates the 501 from execute().

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to