You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Jörg Seitter (Jira)" <ji...@apache.org> on 2021/06/06 17:47:00 UTC
[jira] [Created] (FTPSERVER-502) Cannot upload files due to invalid
absolutePath result
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: dev-unsubscribe@mina.apache.org
For additional commands, e-mail: dev-help@mina.apache.org