You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ftpserver-users@mina.apache.org by Francis De Brabandere <fr...@gmail.com> on 2009/02/03 20:31:58 UTC

symbolic links

Hi,

I'm wondering if there is 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.

If not would there be a way to implement this using an ftplet?

Thanks,

Francis

-- 
http://www.somatik.be
Microsoft gives you windows, Linux gives you the whole house.

Re: symbolic links

Posted by Francis De Brabandere <fr...@gmail.com>.
issue created:
https://issues.apache.org/jira/browse/FTPSERVER-272

On Tue, Feb 3, 2009 at 8:52 PM, Niklas Gustavsson <ni...@protocol7.com> wrote:
> On Tue, Feb 3, 2009 at 8:31 PM, Francis De Brabandere
> <fr...@gmail.com> wrote:
>> I'm wondering if there is a way to make the ftpserver follow symbolic
>> links instead of keeping the symbolic link as pwd:
>
> Not at the moment, no. But, without thinking it through fully, I don't
> see why we could not support it in the future. Feel free to fill out a
> feature request in JIRA and I'll have a look at it for 1.1.
>
>> If not would there be a way to implement this using an ftplet?
>
> Could could look into making a custom file system, likely by extending
> the native file system already available. I'm guessing it might not be
> such a big change.
>
> /niklas
>



-- 
http://www.somatik.be
Microsoft gives you windows, Linux gives you the whole house.

Re: symbolic links

Posted by Ashish <pa...@gmail.com>.
On Wed, Feb 4, 2009 at 2:04 PM, Francis De Brabandere
<fr...@gmail.com> wrote:
> what is the url for these wiki's?

Its our Site Documentation only :-) They are backed by confluence wiki engine

Re: symbolic links

Posted by David Latorre <dv...@gmail.com>.
2009/2/4 Francis De Brabandere <fr...@gmail.com>

> what is the url for these wiki's?
>
> On Wed, Feb 4, 2009 at 9:29 AM, Ashish <pa...@gmail.com> wrote:
> > On Wed, Feb 4, 2009 at 1:50 PM, Niklas Gustavsson <ni...@protocol7.com>
> wrote:
> >> On Wed, Feb 4, 2009 at 9:11 AM, Ashish <pa...@gmail.com> wrote:
> >>> Will we worthwhile, adding this info to wiki :-)
> >>
> >> Agreed, feel free :-)
> >
> > can't write to Ftp Server wiki, but shall add an entry in Related
> > projects that we have for MINA
> >
> > - ashish
> >
>
>
>
> --
> http://www.somatik.be
> Microsoft gives you windows, Linux gives you the whole house.
>

Re: symbolic links

Posted by Francis De Brabandere <fr...@gmail.com>.
what is the url for these wiki's?

On Wed, Feb 4, 2009 at 9:29 AM, Ashish <pa...@gmail.com> wrote:
> On Wed, Feb 4, 2009 at 1:50 PM, Niklas Gustavsson <ni...@protocol7.com> wrote:
>> On Wed, Feb 4, 2009 at 9:11 AM, Ashish <pa...@gmail.com> wrote:
>>> Will we worthwhile, adding this info to wiki :-)
>>
>> Agreed, feel free :-)
>
> can't write to Ftp Server wiki, but shall add an entry in Related
> projects that we have for MINA
>
> - ashish
>



-- 
http://www.somatik.be
Microsoft gives you windows, Linux gives you the whole house.

Re: symbolic links

Posted by Ashish <pa...@gmail.com>.
>
> The general config for the listener:
> org.apache.ftpserver.listener.nio.NioListener.start(FtpServerContext)

Its working fine. Though my MINA program didn't behave as it was
supposed to be. The constructs are same.
Let me investigate further, what went wrong.

>
> Then we might override that for a user:
> org.apache.ftpserver.impl.FtpIoSession.setMaxIdleTime(int)
>
>> and
>> handling session timeout
>
> org.apache.ftpserver.impl.DefaultFtpHandler.sessionIdle(FtpIoSession,
> IdleStatus)

Re: symbolic links

Posted by Niklas Gustavsson <ni...@protocol7.com>.
On Thu, Feb 5, 2009 at 6:29 AM, Ashish <pa...@gmail.com> wrote:
> Also, could you point me to place where you are configuring

The general config for the listener:
org.apache.ftpserver.listener.nio.NioListener.start(FtpServerContext)

Then we might override that for a user:
org.apache.ftpserver.impl.FtpIoSession.setMaxIdleTime(int)

> and
> handling session timeout

org.apache.ftpserver.impl.DefaultFtpHandler.sessionIdle(FtpIoSession,
IdleStatus)

/niklas

Re: symbolic links

Posted by Ashish <pa...@gmail.com>.
>> can't write to Ftp Server wiki, but shall add an entry in Related
>> projects that we have for MINA
>
> I've added you to the FtpServer space as well.

Thanks !

Also, could you point me to place where you are configuring and
handling session timeout
Having trouble using it in MINA app.

thanks

Re: symbolic links

Posted by Niklas Gustavsson <ni...@protocol7.com>.
On Wed, Feb 4, 2009 at 9:29 AM, Ashish <pa...@gmail.com> wrote:
> can't write to Ftp Server wiki, but shall add an entry in Related
> projects that we have for MINA

I've added you to the FtpServer space as well.

/niklas

Re: symbolic links

Posted by Ashish <pa...@gmail.com>.
On Wed, Feb 4, 2009 at 1:50 PM, Niklas Gustavsson <ni...@protocol7.com> wrote:
> On Wed, Feb 4, 2009 at 9:11 AM, Ashish <pa...@gmail.com> wrote:
>> Will we worthwhile, adding this info to wiki :-)
>
> Agreed, feel free :-)

can't write to Ftp Server wiki, but shall add an entry in Related
projects that we have for MINA

- ashish

Re: symbolic links

Posted by Francis De Brabandere <fr...@gmail.com>.
I've been looking at commons vfs, but I did not see any support for
symbolic links

On Wed, Feb 4, 2009 at 9:20 AM, Niklas Gustavsson <ni...@protocol7.com> wrote:
> On Wed, Feb 4, 2009 at 9:11 AM, Ashish <pa...@gmail.com> wrote:
>> Will we worthwhile, adding this info to wiki :-)
>
> Agreed, feel free :-)
>
> /niklas
>



-- 
http://www.somatik.be
Microsoft gives you windows, Linux gives you the whole house.

Re: symbolic links

Posted by Niklas Gustavsson <ni...@protocol7.com>.
On Wed, Feb 4, 2009 at 9:11 AM, Ashish <pa...@gmail.com> wrote:
> Will we worthwhile, adding this info to wiki :-)

Agreed, feel free :-)

/niklas

Re: symbolic links

Posted by Ashish <pa...@gmail.com>.
d, Feb 4, 2009 at 5:56 AM, Ashish <pa...@gmail.com> wrote:
>> Niklas, can Apache VFS (http://commons.apache.org/vfs/) be a good
>> candidate to be used here??
>
> Sure, David already got that working:
> http://vfs-utils.sourceforge.net/ftpserver/index.html

Will we worthwhile, adding this info to wiki :-)

- ashish

Re: symbolic links

Posted by Ashish <pa...@gmail.com>.
>> Sure, David already got that working:
>> http://vfs-utils.sourceforge.net/ftpserver/index.html
>>
>
>  Actually this project is by Frank van der Kleij. I came across it when I
> was about to develop my own (more specialized/limited) VFS implementation
> - With Frank's code as a starting point, using commons-vfs is really easy.
>
> If only VFS supported several levels of junctions ... :)
>

Well, we had a discussion where we wanted to give users a view to an
infinite storage capacity. Typically for our SVN repository :-)
While evaluating a solution for that thought about using FtpServer as
front end and some kind of VFS at the back. May be Hadoop could be a
better fit. Not sure :-(
Before that will have to integrate FtpServer UserManager with Acegi
and AD. Still in prototype phase. Hope I get sometime and put in the
system in place .

- ashish

Re: symbolic links

Posted by David Latorre <dv...@gmail.com>.
2009/2/4 Niklas Gustavsson <ni...@protocol7.com>

> On Wed, Feb 4, 2009 at 5:56 AM, Ashish <pa...@gmail.com> wrote:
> > Niklas, can Apache VFS (http://commons.apache.org/vfs/) be a good
> > candidate to be used here??
>
> Sure, David already got that working:
> http://vfs-utils.sourceforge.net/ftpserver/index.html
>

 Actually this project is by Frank van der Kleij. I came across it when I
was about to develop my own (more specialized/limited) VFS implementation
- With Frank's code as a starting point, using commons-vfs is really easy.

If only VFS supported several levels of junctions ... :)



>
> /niklas
>

Re: symbolic links

Posted by Niklas Gustavsson <ni...@protocol7.com>.
On Wed, Feb 4, 2009 at 5:56 AM, Ashish <pa...@gmail.com> wrote:
> Niklas, can Apache VFS (http://commons.apache.org/vfs/) be a good
> candidate to be used here??

Sure, David already got that working:
http://vfs-utils.sourceforge.net/ftpserver/index.html

/niklas

Re: symbolic links

Posted by Ashish <pa...@gmail.com>.
On Wed, Feb 4, 2009 at 1:22 AM, Niklas Gustavsson <ni...@protocol7.com> wrote:
> On Tue, Feb 3, 2009 at 8:31 PM, Francis De Brabandere
> <fr...@gmail.com> wrote:
>> I'm wondering if there is a way to make the ftpserver follow symbolic
>> links instead of keeping the symbolic link as pwd:
>
> Not at the moment, no. But, without thinking it through fully, I don't
> see why we could not support it in the future. Feel free to fill out a
> feature request in JIRA and I'll have a look at it for 1.1.
>
>> If not would there be a way to implement this using an ftplet?
>
> Could could look into making a custom file system, likely by extending
> the native file system already available. I'm guessing it might not be
> such a big change.

Niklas, can Apache VFS (http://commons.apache.org/vfs/) be a good
candidate to be used here??

- ashish

Re: symbolic links

Posted by Niklas Gustavsson <ni...@protocol7.com>.
On Tue, Feb 3, 2009 at 8:31 PM, Francis De Brabandere
<fr...@gmail.com> wrote:
> I'm wondering if there is a way to make the ftpserver follow symbolic
> links instead of keeping the symbolic link as pwd:

Not at the moment, no. But, without thinking it through fully, I don't
see why we could not support it in the future. Feel free to fill out a
feature request in JIRA and I'll have a look at it for 1.1.

> If not would there be a way to implement this using an ftplet?

Could could look into making a custom file system, likely by extending
the native file system already available. I'm guessing it might not be
such a big change.

/niklas