You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Tomislav Haramustek (JIRA)" <ji...@apache.org> on 2018/11/08 12:24:00 UTC
[jira] [Created] (FTPSERVER-488) File offset cleared before data
transfer requested
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
(v7.6.3#76005)