FEAT command response format is incorrect
-----------------------------------------

                 Key: FTPSERVER-88
                 URL: https://issues.apache.org/jira/browse/FTPSERVER-88
             Project: FtpServer
          Issue Type: Bug
          Components: Core
            Reporter: Steve Jones


The FEAT command does not put a space character before each feature listing, 
this is required as per:

  http://www.rfc-archive.org/getrfc.php?rfc=2389

Here's the grammar (from the RFC):

        feat-response   = error-response / no-features / feature-listing
        no-features     = "211" SP *TCHAR CRLF
        feature-listing = "211-" *TCHAR CRLF
                          1*( SP feature CRLF )
                          "211 End" CRLF
        feature         = feature-label [ SP feature-parms ]
        feature-label   = 1*VCHAR
        feature-parms   = 1*TCHAR

Heres the example they provide:

        C> feat
        S> 211-Extensions supported:
        S>  MLST size*;create;modify*;perm;media-type
        S>  SIZE
        S>  COMPRESSION
        S>  MDTM
        S> 211 END

Here's what FtpServer would output for the above features:

        C> feat
        S> 211-Extensions supported:
        S> MLST size*;create;modify*;perm;media-type
        S> SIZE
        S> COMPRESSION
        S> MDTM
        S> 211 END

Perhaps a variant of "DefaultFtpReply" that does not "trim()" each line is 
required for this.

-- 
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