Jörg Seitter created FTPSERVER-502:
--------------------------------------
Summary: Cannot upload files due to invalid absolutePath result
Key: FTPSERVER-502
URL: https://issues.apache.org/jira/browse/FTPSERVER-502
Project: FtpServer
Issue Type: Bug
Components: Core
Affects Versions: 1.1.1
Environment: ftpserver 1.1.1 on MacOS runnign Java SE 1.8_162
Reporter: Jörg Seitter
NativeFtpFile's getAbsolutePath returns only the relative path without the last
/
The authorizations checking expects the full absolute Path since it checks if
the
users homedirectory is a startsWith prefix of the given path.
I fixed it by changing the return of getAbsolute Path to
*return* file.getAbsolutePath();
Side Effect is that it shows now the real path after login, so i assume this is
not sufficient for a proper fix
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]