You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Emmanuel Lécharny (Jira)" <ji...@apache.org> on 2025/01/07 10:13:00 UTC

[jira] [Closed] (FTPSERVER-38) Could do with clarification about what values the FileSystemView implementations can return

     [ https://issues.apache.org/jira/browse/FTPSERVER-38?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Lécharny closed FTPSERVER-38.
--------------------------------------
    Fix Version/s: 1.2.1
       Resolution: Fixed

Probably addressed a very long time ago (the ticket is 14 years old!).

> Could do with clarification about what values the FileSystemView implementations can return
> -------------------------------------------------------------------------------------------
>
>                 Key: FTPSERVER-38
>                 URL: https://issues.apache.org/jira/browse/FTPSERVER-38
>             Project: FtpServer
>          Issue Type: Wish
>            Reporter: John Wood
>            Priority: Trivial
>             Fix For: 1.2.1
>
>
> It isn't completely clear whether the FileSystemView implementation can return "null" values for the interface methods.
> To put this in context, I am writing a new FileSystemView which basically does nothing - i.e. prevents the user from listing files or changing directories (all the RETR/STOR stuff will then be handled explicitly by the Ftplet I am also writing).
> To this end, I made an implementation of FileSystemView which returns null for all the methods (except for changeDirectory() which returns false).
> My question/comment was simply that its not clear whether this is "allowed". For example, in most cases where FileSystemView.getFileObject() is called it *does* check for null being returned and handles it appropriately.
> Obviously, any problems will simply get caught by the FTP server, but I just thought this might need clarifying.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org
For additional commands, e-mail: dev-help@mina.apache.org