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
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
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
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.
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
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
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
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]
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
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
_
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
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
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
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
, 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
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]
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
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;
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
[
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
[
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
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
[
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
[
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
[
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
[
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
[
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
[
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
28 matches
Mail list logo