mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tomislav Haramustek (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FTPSERVER-488) File offset cleared before data transfer requested
Date Thu, 08 Nov 2018 12:24:00 GMT
Tomislav Haramustek created FTPSERVER-488:

             Summary: File offset cleared before data transfer requested
                 Key: FTPSERVER-488
                 URL: https://issues.apache.org/jira/browse/FTPSERVER-488
             Project: FtpServer
          Issue Type: Bug
          Components: Server
    Affects Versions: 1.1.1
            Reporter: Tomislav Haramustek

The problem is when a FTP client sets the file offset with REST command not immediatelly followed
by RETR command.

When REST is received the offset is put in the attributes map with appropriate key and everything
seems to be fine. Even the implementation of RETR command takes that file offset into account
and everything works according to excpectations if there is no other command received in the
meantime, i.e. if REST is immediatelly followed by RETR (for the same session). But, there
are some clients that do not conform to that (although RFC959 specifies that REST should be
immediatelly followed by a command that will trigger data transfer), but send some other command
instead, e.g. PASV. The implementation of PASV command resets the session state and the offset
efectivelly becomes 0.

I don't know if this can be treated as a bug since the actual implementation follows RFC specification,
but I wanted to share this with everybody and to get some suggestions what to do in such cases.

This message was sent by Atlassian JIRA

View raw message