RE: (FTPSERVER-119) STOR command should not eat exceptions when closing stream

2008-05-08 Thread Frank van der Kleij
with the FileObject. The close() is just giving the FileObject an opportunity to do some house-cleaning if it wants to. Andy Thomson Frank van der Kleij wrote: Hi Andy, I don't think it's conceptually clean to close the file object before the stream is closed, it's very counterintuitive. I think

[sshd] access to identity in custom shell?

2009-07-12 Thread Frank van der Kleij
Hi, I am trying to integrate my custom shell (that is based on Apache Commons VFS) in the sshd server. It starts to take form but I have some trouble. I have created a custom PasswordAuthenticator that I give a path that points to a Virtual File System. When it authenticates the user it returns

RE: [sshd] access to identity in custom shell?

2009-07-14 Thread Frank van der Kleij
So the most symmetrical solution would be to pass the ServerSession to the PasswordAuthenticator and to have a SessionAware on the ShellFactory. Passing around the Identity would be done using session attributes. Not touching the PasswordAuthenticator interface but letting the

[sshd] use of session attributes and AttributeKey

2009-07-16 Thread Frank van der Kleij
Has anyone used the ServerSession attributes? I'm puzzled by the AttributeKey class that is used to define the key. It's an empty class without any state. The only way I can see to use it is to make a subclass of it, but that seems like a lot of trouble just to store something in the session.

RE: [sshd] use of session attributes and AttributeKey

2009-07-18 Thread Frank van der Kleij
Has anyone used the ServerSession attributes? I'm puzzled by the AttributeKey class that is used to define the key. It's an empty class without any state. The only way I can see to use it is to make a subclass of it, but that seems like a lot of trouble just to store something in the

[sshd] does scp works?

2009-08-08 Thread Frank van der Kleij
I am trying to write my own implementation of the ScpCommand using Apache VFS FileObject io File, but I have several issues. Is anyone using the ScpCommand? I copied the original and just patched it where needed so the problems I have are likely to exist in the normal ScpCommand too. I am

RE: [sshd] does scp works?

2009-08-08 Thread Frank van der Kleij
The SshClient is not scp enabled then? I am now trying with putty's pscp and it works better. I found a small glitch for which I will submit a patch on JIRA. I still have a problem with recursive copy on a folder; The Window class says: 'Waiting for 16384 bytes on server remote window' and

RE: [sshd] does scp works?

2009-08-11 Thread Frank van der Kleij
Yes, I tried with the trunk. Using PuTTY (on Windows) I also have the problem in normal shell mode when sending large results of shell commands (e.g. cat). When I use the SSHD Client it does not block and when I use ssh from Linux neither. I copied the stack below. Thread [VfsShell]

[sshd] clients and echo

2009-08-16 Thread Frank van der Kleij
I am trying to roll my own sshd based server but I am having some issues with the different clients and echoing what comes in. It seems like most clients send each character to the server and expect the server to echo it. The term attribute is set to 'xterm something ' for PuTTY and *nix

RE: Extending Spring Configuration Definition

2010-04-22 Thread Frank van der Kleij
You could also replace the user manager by your own (which might subclass the existing). I did it like that, see http://vfs-utils.sourceforge.net/ftpserver/configuration.html Frank _

[SSHD] SFTP relies on Java 6?

2010-04-30 Thread Frank van der Kleij
Hi, Thanks for the SFTP support! There might be a small issue though. The SftpSubsystem.java uses java.io.File.canExecute() which was introduced in Java6. I think the pom still says SSHD compiles with Java5. Will you switch to Java6? Thanks, Frank

RE: SFTP problems

2010-05-06 Thread Frank van der Kleij
I'm testing on Windows in a non-root directory and the folder navigation works but I have errors in the log because of this: line 790: f = new File(normalizedPath); if (f.getName().length() == 0) { f = new File(f, .); } It causes errors in writeAttrs because the

RE: SFTP problems

2010-05-06 Thread Frank van der Kleij
Hi Guillaume, I still have the FileNotFoundException when I start in e.g. d:\temp with f = new File(normalizedPath); For me it works only with f = resolveFile(normalizedPath); What are your settings? Do you start in '/' on Mac? Regards

RE: SFTP problems

2010-05-09 Thread Frank van der Kleij
I was doing some tests and found a problem on uploading. When doing the upload REALPATH is called on the file that is about to be created, but in writeAttrs there is a check whether the file actually exists and an exception is thrown. When I remove the exception throwing in writeAttrs then

RE: SFTP problems

2010-05-10 Thread Frank van der Kleij
, May 9, 2010 at 16:15, Frank van der Kleij kl...@hotmail.com wrote: I was doing some tests and found a problem on uploading. When doing the upload REALPATH is called on the file that is about to be created, but in writeAttrs there is a check whether the file actually exists

RE: [jira] Commented: (FTPSERVER-40) Support for SFTP

2010-10-07 Thread Frank van der Kleij
If you want to have a single API for FTP, FTPS and SFTP for your client you could have a look at Apache Commons VFS. Of course it also hides some stuff so you should see if suits you. Frank Date: Wed, 6 Oct 2010 20:24:37 -0400 From: j...@apache.org To: dev@mina.apache.org Subject: [jira]

RE: (SSHD-82) Virtual File System

2010-11-11 Thread Frank van der Kleij
I am finally working on a VFS implementation now. For me it be more practical if the FileSystemFactory would receive the Session instead of just the username. The VFS Authenticator resolves the user name and password and string representing the root of the virtual filesystem and creates a

RE: How add another way to authenticate ?

2010-11-29 Thread Frank van der Kleij
Basically you create your own implementation of org.apache.ftpserver.ftplet.UserManager and register it, e.g. server xmlns=http://mina.apache.org/ftpserver/spring/v1; xmlns:beans=http://www.springframework.org/schema/beans; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;

[jira] Created: (FTPSERVER-325) ftpd-full.xml does not show options on server element

2009-08-21 Thread Frank van der Kleij (JIRA)
Components: Server Affects Versions: 1.0.2 Reporter: Frank van der Kleij Priority: Minor The configuration options on the server element listed in http://mina.apache.org/ftpserver/server.html are not available in distribution/res/conf/ftpd-full.xml (except for the id

[jira] Updated: (FTPSERVER-325) ftpd-full.xml does not show options on server element

2009-08-21 Thread Frank van der Kleij (JIRA)
[ https://issues.apache.org/jira/browse/FTPSERVER-325?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Frank van der Kleij updated FTPSERVER-325: -- Attachment: FTPSERVER-325.patch The patch is made relative to the full

[jira] Commented: (FTPSERVER-40) Support for SFTP

2010-10-07 Thread Frank van der Kleij (JIRA)
[ https://issues.apache.org/jira/browse/FTPSERVER-40?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12918830#action_12918830 ] Frank van der Kleij commented on FTPSERVER-40: -- The Apache SSHD server has

[jira] Created: (SSHD-96) Virtual File System improvement for SCP and session injection

2010-11-12 Thread Frank van der Kleij (JIRA)
Affects Versions: 0.5.0 Reporter: Frank van der Kleij The SCP Command does not yet use the Virtual File System implemented in SSHD-82. Another improvement is passing the ServerSession to FileSystemFactory instead of just the user name. This allows the injection of information known

[jira] Updated: (SSHD-96) Virtual File System improvement for SCP and session injection

2010-11-12 Thread Frank van der Kleij (JIRA)
[ https://issues.apache.org/jira/browse/SSHD-96?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Frank van der Kleij updated SSHD-96: Attachment: sshd-96.patch This patch adds the requested changes. Virtual File System

[jira] Commented: (SSHD-96) Virtual File System improvement for SCP and session injection

2010-11-13 Thread Frank van der Kleij (JIRA)
[ https://issues.apache.org/jira/browse/SSHD-96?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12931673#action_12931673 ] Frank van der Kleij commented on SSHD-96: - Sorry, I forgot the tests...I will submit

[jira] Updated: (SSHD-96) Virtual File System improvement for SCP and session injection

2010-11-14 Thread Frank van der Kleij (JIRA)
[ https://issues.apache.org/jira/browse/SSHD-96?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Frank van der Kleij updated SSHD-96: Attachment: (was: sshd-96.patch) Virtual File System improvement for SCP and session

[jira] Updated: (SSHD-96) Virtual File System improvement for SCP and session injection

2010-11-14 Thread Frank van der Kleij (JIRA)
[ https://issues.apache.org/jira/browse/SSHD-96?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Frank van der Kleij updated SSHD-96: Attachment: sshd-96.patch This patch adds support for the Virtual Filesystem for SCP

[jira] Commented: (SSHD-107) Extend SshFile etc views to scp command

2011-03-03 Thread Frank van der Kleij (JIRA)
[ https://issues.apache.org/jira/browse/SSHD-107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13002224#comment-13002224 ] Frank van der Kleij commented on SSHD-107: -- This is already part of 0.5.1-SNAPSHOT

[jira] Commented: (SSHD-109) Pass server session to FileSystemFactory.createFileSystemView

2011-03-03 Thread Frank van der Kleij (JIRA)
[ https://issues.apache.org/jira/browse/SSHD-109?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13002229#comment-13002229 ] Frank van der Kleij commented on SSHD-109: -- This is already part of 0.5.1-SNAPSHOT