You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ftpserver-dev@incubator.apache.org by Niklas Gustavsson <ni...@protocol7.com> on 2007/03/01 09:57:08 UTC

Re: Release 1.0-M1-incubator and Ftplet onDownloadStart

Hey Peter

Peter Kostouros wrote:
> Hi
> 
> I am writing a custom Ftplet where I would like to customise the 
> behaviour of some events, specifically onDownloadStart. The FAQ example 
> is ideal, however I am unsure this version is compatible with release 
> 1.0-M1-incubator (interface has changed). Can someone point me in the 
> direction as to how the FAQ's onDownloadStart example can be ported to 
> the newer release?

I've identified the problem and is working on a solution. I've been in 
the bed sick but is now back up so I expect a first stab at the fix 
being done later today.

/niklas


Re: Release 1.0-M1-incubator and Ftplet onDownloadStart

Posted by Niklas Gustavsson <ni...@protocol7.com>.
Peter Kostouros wrote:
> I have a bit of work to do but I have one error during building:
> 
> testMkdirInvalidDirectoryName (... ftpserver.clienttests.DirectoryTest)
> 
> returns 250 when it expected 550.
> 
> MKD foo:bar;foo
> 
> is successful!
> 
> If I run mkdir foo:bar;foo from the command line directory foo:bar is 
> created but the command foo cannot be executed (I am running FreeBSD and 
> ; is a command separator).

Thanks, I'll run the tests on Linux and see if I can fix it.

/niklas


Re: Release 1.0-M1-incubator and Ftplet onDownloadStart

Posted by Niklas Gustavsson <ni...@protocol7.com>.
Peter Kostouros wrote:
> I have a bit of work to do but I have one error during building:
> 
> testMkdirInvalidDirectoryName (... ftpserver.clienttests.DirectoryTest)
> 
> returns 250 when it expected 550.
> 
> MKD foo:bar;foo
> 
> is successful!

This should now be fixed in trunk. Thanks for reporting!

/niklas


Re: Release 1.0-M1-incubator and Ftplet onDownloadStart

Posted by Peter Kostouros <kp...@melbpc.org.au>.
Niklas Gustavsson wrote:
> Peter Kostouros wrote:
>> Niklas Gustavsson wrote:
>>> I've now commited the required changes and updated the FAQ:
>>> http://cwiki.apache.org/FTPSERVER/faq.html
>>>
>>> The API will probably need some more work before being completely 
>>> done, but the major changes are there. Feedback is of course welcome!
>>>
>>> /niklas
>>>
>>>
>> Thanks Niklas!
>>
>
> Were you able to complete your implementation with these changes?
>
> /niklas
>
>
Hi

I have a bit of work to do but I have one error during building:

testMkdirInvalidDirectoryName (... ftpserver.clienttests.DirectoryTest)

returns 250 when it expected 550.

MKD foo:bar;foo

is successful!

If I run mkdir foo:bar;foo from the command line directory foo:bar is 
created but the command foo cannot be executed (I am running FreeBSD and 
; is a command separator).

I have not yet looked at FileObject as to why this would not cause an 
error. For the time I have removed the test.

I am currently setting up a test deployment with my Ftplet and will get 
back to you in the next few days.

-- 

Regards

Peter

As always the organisation disavows knowledge of this email


Re: Release 1.0-M1-incubator and Ftplet onDownloadStart

Posted by Niklas Gustavsson <ni...@protocol7.com>.
Peter Kostouros wrote:
> Hi Niklas
> 
> In my specific case EDI documents are dropped in and picked up, and non 
> SQL transactions are performed on a proprietary database. I implemented 
> a solution with the available API with which we are happy.

Great!

> Can you expand on the database file system?

What you could do, is to write an implementation of:
FileSystemManager
FileSystemView
FileSystemObject

This implementation would then take care of the communication with your 
database. The pro with this approach is that you automatically get 
support for all operations (listing, storing, retrieving and so on) not 
just uploading.

We currently only have an implementation targeted for the file system, 
however I would like to provide examples for databases (JDBC) and JMS.

/niklas


Re: Release 1.0-M1-incubator and Ftplet onDownloadStart

Posted by Peter Kostouros <kp...@melbpc.org.au>.
Niklas Gustavsson wrote:
> Peter Kostouros wrote:
>> A preliminary implementation of the custom ftplet looks OK . Thanks!
>
> I different (and perhaps better) approach would be to implement a 
> database backed file system, that would then support all file 
> operations towards the database. This would also be something that 
> would be interesting to ship with our distribution so if you need any 
> help I could be of assistance :-)
>
> /niklas
>
>
Hi Niklas

In my specific case EDI documents are dropped in and picked up, and non 
SQL transactions are performed on a proprietary database. I implemented 
a solution with the available API with which we are happy.

Can you expand on the database file system?

-- 

Regards

Peter

As always the organisation disavows knowledge of this email


Re: Release 1.0-M1-incubator and Ftplet onDownloadStart

Posted by Niklas Gustavsson <ni...@protocol7.com>.
Peter Kostouros wrote:
> A preliminary implementation of the custom ftplet looks OK . Thanks!

I different (and perhaps better) approach would be to implement a 
database backed file system, that would then support all file operations 
towards the database. This would also be something that would be 
interesting to ship with our distribution so if you need any help I 
could be of assistance :-)

/niklas


Re: Release 1.0-M1-incubator and Ftplet onDownloadStart

Posted by Peter Kostouros <kp...@melbpc.org.au>.
Niklas Gustavsson wrote:
> Peter Kostouros wrote:
>> Niklas Gustavsson wrote:
>>> I've now commited the required changes and updated the FAQ:
>>> http://cwiki.apache.org/FTPSERVER/faq.html
>>>
>>> The API will probably need some more work before being completely 
>>> done, but the major changes are there. Feedback is of course welcome!
>>>
>>> /niklas
>>>
>>>
>> Thanks Niklas!
>>
>
> Were you able to complete your implementation with these changes?
>
> /niklas
>
>
A preliminary implementation of the custom ftplet looks OK . Thanks!

-- 

Regards

Peter

As always the organisation disavows knowledge of this email


Re: Release 1.0-M1-incubator and Ftplet onDownloadStart

Posted by Niklas Gustavsson <ni...@protocol7.com>.
Peter Kostouros wrote:
> Niklas Gustavsson wrote:
>> I've now commited the required changes and updated the FAQ:
>> http://cwiki.apache.org/FTPSERVER/faq.html
>>
>> The API will probably need some more work before being completely 
>> done, but the major changes are there. Feedback is of course welcome!
>>
>> /niklas
>>
>>
> Thanks Niklas!
> 

Were you able to complete your implementation with these changes?

/niklas


Re: Release 1.0-M1-incubator and Ftplet onDownloadStart

Posted by Peter Kostouros <kp...@melbpc.org.au>.
Niklas Gustavsson wrote:
> Niklas Gustavsson wrote:
>> Hey Peter
>>
>> Peter Kostouros wrote:
>>> Hi
>>>
>>> I am writing a custom Ftplet where I would like to customise the 
>>> behaviour of some events, specifically onDownloadStart. The FAQ 
>>> example is ideal, however I am unsure this version is compatible 
>>> with release 1.0-M1-incubator (interface has changed). Can someone 
>>> point me in the direction as to how the FAQ's onDownloadStart 
>>> example can be ported to the newer release?
>>
>> I've identified the problem and is working on a solution. I've been 
>> in the bed sick but is now back up so I expect a first stab at the 
>> fix being done later today.
>
> I've now commited the required changes and updated the FAQ:
> http://cwiki.apache.org/FTPSERVER/faq.html
>
> The API will probably need some more work before being completely 
> done, but the major changes are there. Feedback is of course welcome!
>
> /niklas
>
>
Thanks Niklas!

-- 

Regards

Peter

As always the organisation disavows knowledge of this email


Re: Release 1.0-M1-incubator and Ftplet onDownloadStart

Posted by Niklas Gustavsson <ni...@protocol7.com>.
Niklas Gustavsson wrote:
> Hey Peter
> 
> Peter Kostouros wrote:
>> Hi
>>
>> I am writing a custom Ftplet where I would like to customise the 
>> behaviour of some events, specifically onDownloadStart. The FAQ 
>> example is ideal, however I am unsure this version is compatible with 
>> release 1.0-M1-incubator (interface has changed). Can someone point me 
>> in the direction as to how the FAQ's onDownloadStart example can be 
>> ported to the newer release?
> 
> I've identified the problem and is working on a solution. I've been in 
> the bed sick but is now back up so I expect a first stab at the fix 
> being done later today.

I've now commited the required changes and updated the FAQ:
http://cwiki.apache.org/FTPSERVER/faq.html

The API will probably need some more work before being completely done, 
but the major changes are there. Feedback is of course welcome!

/niklas