[
https://issues.apache.org/jira/browse/FTPSERVER-272?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12709130#action_12709130
]
Niklas Gustavsson commented on FTPSERVER-272:
---------------------------------------------
How should this work with regards to the user home directory and moving upward
(..) with CWD? That is, if user home dir is /home/foo and /home/foo/bar links
to /home/bar. Where should the user end up if he does:
CWD bar
CWD ..
Is he now in /home or in /home/foo? I'm assuming /home/foo as otherwise we
would allow him access outside of his defined root. If my assumtion is correct,
we would need to keep a history of where the user was when he did CWD bar,
right?
> follow symbolic links
> ---------------------
>
> Key: FTPSERVER-272
> URL: https://issues.apache.org/jira/browse/FTPSERVER-272
> Project: FtpServer
> Issue Type: New Feature
> Environment: unix, linux, mac, ...
> Reporter: Francis De Brabandere
> Assignee: Niklas Gustavsson
> Fix For: 1.1
>
>
> there should be a way to make the ftpserver follow symbolic links instead of
> keeping the symbolic link as pwd:
> Command: CWD link
> Response: 250 CWD command successful.
> Command: PWD
> Response: 257 "/linkedToFolder" is current directory.
> you might want to make this the default behavior as some other ftp server do
> that (to investigate)
> for links the file.getAbsolutePath() gives you the link path and
> file.getCanonicalPath() gives you the real (linked to) path
> (only tested on Linux with sun jvm, not sure this is defined in the spec)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.