You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Jörg Schaible <Jo...@scalaris.com> on 2013/02/19 16:41:33 UTC

[VFS] State of FtpsProviderTestCase

Hi,

can someone enlighten me about the state of the FtpsProviderTestCase? It's 
currently disabled and when I (rename it and) run it with Maven it simply 
hangs. Why is it possible to open two input stream on the same object with 
FTP but not FTPS?

Cheers,
Jörg



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


Re: [VFS] State of FtpsProviderTestCase

Posted by Jörg Schaible <Jo...@scalaris.com>.
Hi Gary,

Gary Gregory wrote:

> On Wed, Feb 20, 2013 at 1:35 PM, Jörg Schaible
> <Jo...@scalaris.com>wrote:
> 
>> Hi Gary,
>>
>> Jörg Schaible wrote:
>>
>> > Hi Gary,
>> >
>> > Gary Gregory wrote:
>> >
>> > [snip]
>> >
>> >>> Actually FTPS support seems to be in a very bad shape, because a lot
>> >>> of tests hang:
>> >>>
>> >>>  - testReadSingleConcurrent
>> >>>  - testReadMultipleConcurrent
>> >>>  - testInputStreamMultipleCleanup
>> >>>  - testConcurrentReadFolder
>> >>>  - testCopySameFileSystem
>> >>>  - testCopyFromOverwriteSameFileSystem
>> >>>  - testCreateDeleteCreateSameFileSystem
>> >>>  - testWriteSameFileSystem
>> >>>  - testOverwriteSameFileSystem
>> >>>  - testAppendContent
>> >>>
>> >>> :-/
>> >>>
>> >>> I try to modify the tests in a way, that they fail in such a case
>> >>> instead.
>> >>>
>> >>
>> >> Don't all these fail in the same way?
>> >
>> > Yes, they hung all. After I tried to set a connection time out I start
>> > wondering even more ... see VFS-458, will commit soon.
>>
>> Done. Bottom line: Tests pass now in explicit mode and some fail in
>> implicit
>> mode, but none hangs anymore. Main problem with implicit mode is AFAICS,
>> that it is not standardized and you should normally avoid it. Therefore I
>> have no idea, if the Apache SSHD behaves here different compared to other
>> FTPS servers that have might been tested with FTPSClient.
>>
> 
> Thank you for working on this. The latest from trunk builds OK here.

Hehehe ... I'll stop when VFS/FTPS works with client-side certification 
authentication ;-)

- Jörg


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


Re: [VFS] State of FtpsProviderTestCase

Posted by Gary Gregory <ga...@gmail.com>.
On Wed, Feb 20, 2013 at 1:35 PM, Jörg Schaible
<Jo...@scalaris.com>wrote:

> Hi Gary,
>
> Jörg Schaible wrote:
>
> > Hi Gary,
> >
> > Gary Gregory wrote:
> >
> > [snip]
> >
> >>> Actually FTPS support seems to be in a very bad shape, because a lot of
> >>> tests hang:
> >>>
> >>>  - testReadSingleConcurrent
> >>>  - testReadMultipleConcurrent
> >>>  - testInputStreamMultipleCleanup
> >>>  - testConcurrentReadFolder
> >>>  - testCopySameFileSystem
> >>>  - testCopyFromOverwriteSameFileSystem
> >>>  - testCreateDeleteCreateSameFileSystem
> >>>  - testWriteSameFileSystem
> >>>  - testOverwriteSameFileSystem
> >>>  - testAppendContent
> >>>
> >>> :-/
> >>>
> >>> I try to modify the tests in a way, that they fail in such a case
> >>> instead.
> >>>
> >>
> >> Don't all these fail in the same way?
> >
> > Yes, they hung all. After I tried to set a connection time out I start
> > wondering even more ... see VFS-458, will commit soon.
>
> Done. Bottom line: Tests pass now in explicit mode and some fail in
> implicit
> mode, but none hangs anymore. Main problem with implicit mode is AFAICS,
> that it is not standardized and you should normally avoid it. Therefore I
> have no idea, if the Apache SSHD behaves here different compared to other
> FTPS servers that have might been tested with FTPSClient.
>

Thank you for working on this. The latest from trunk builds OK here.

Gary


> Cheers,
> Jörg
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>
>


-- 
E-Mail: garydgregory@gmail.com | ggregory@apache.org
JUnit in Action, 2nd Ed: <http://goog_1249600977>http://bit.ly/ECvg0
Spring Batch in Action: <http://s.apache.org/HOq>http://bit.ly/bqpbCK
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory

Re: [VFS] State of FtpsProviderTestCase

Posted by Jörg Schaible <Jo...@scalaris.com>.
Hi Gary,

Jörg Schaible wrote:

> Hi Gary,
> 
> Gary Gregory wrote:
> 
> [snip]
> 
>>> Actually FTPS support seems to be in a very bad shape, because a lot of
>>> tests hang:
>>>
>>>  - testReadSingleConcurrent
>>>  - testReadMultipleConcurrent
>>>  - testInputStreamMultipleCleanup
>>>  - testConcurrentReadFolder
>>>  - testCopySameFileSystem
>>>  - testCopyFromOverwriteSameFileSystem
>>>  - testCreateDeleteCreateSameFileSystem
>>>  - testWriteSameFileSystem
>>>  - testOverwriteSameFileSystem
>>>  - testAppendContent
>>>
>>> :-/
>>>
>>> I try to modify the tests in a way, that they fail in such a case
>>> instead.
>>>
>> 
>> Don't all these fail in the same way?
> 
> Yes, they hung all. After I tried to set a connection time out I start
> wondering even more ... see VFS-458, will commit soon.

Done. Bottom line: Tests pass now in explicit mode and some fail in implicit 
mode, but none hangs anymore. Main problem with implicit mode is AFAICS, 
that it is not standardized and you should normally avoid it. Therefore I 
have no idea, if the Apache SSHD behaves here different compared to other 
FTPS servers that have might been tested with FTPSClient.

Cheers,
Jörg


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


Re: [VFS] State of FtpsProviderTestCase

Posted by Jörg Schaible <Jo...@scalaris.com>.
Hi Gary,

Gary Gregory wrote:

[snip]

>> Actually FTPS support seems to be in a very bad shape, because a lot of
>> tests hang:
>>
>>  - testReadSingleConcurrent
>>  - testReadMultipleConcurrent
>>  - testInputStreamMultipleCleanup
>>  - testConcurrentReadFolder
>>  - testCopySameFileSystem
>>  - testCopyFromOverwriteSameFileSystem
>>  - testCreateDeleteCreateSameFileSystem
>>  - testWriteSameFileSystem
>>  - testOverwriteSameFileSystem
>>  - testAppendContent
>>
>> :-/
>>
>> I try to modify the tests in a way, that they fail in such a case
>> instead.
>>
> 
> Don't all these fail in the same way?

Yes, they hung all. After I tried to set a connection time out I start 
wondering even more ... see VFS-458, will commit soon.

- Jörg


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


Re: [VFS] State of FtpsProviderTestCase

Posted by Gary Gregory <ga...@gmail.com>.
On Wed, Feb 20, 2013 at 6:11 AM, Jörg Schaible
<Jo...@scalaris.com>wrote:

> Hi Gary,
>
> Gary Gregory wrote:
>
> > On Tue, Feb 19, 2013 at 12:57 PM, Gary Gregory
> > <ga...@gmail.com>wrote:
> >
> >> On Tue, Feb 19, 2013 at 10:41 AM, Jörg Schaible <
> >> Joerg.Schaible@scalaris.com> wrote:
> >>
> >>> Hi,
> >>>
> >>> can someone enlighten me about the state of the FtpsProviderTestCase?
> >>> It's currently disabled and when I (rename it and) run it with Maven it
> >>> simply hangs. Why is it possible to open two input stream on the same
> >>> object with FTP but not FTPS?
> >>>
> >>
> >> I created and disabled this test a while back. I never got very far
> >> debugging it aside from seeing it hang in the debugger and asking for
> >> help on the ML and on the Commons ML for [net]. I though I created a
> JIRA
> >> for this but now I cannot find it.
> >>
> >
> > @#$% mail filters!
> >
> > Apache will not let through emails I write with a URL that points to the
> > email thread from April 2012. So search for an email thread titled
> > "[NET][VFS] Help with FTPS hanging tests"... Grrr...
>
> thanks for the private pointer, I try it now with a link to Gmane:
> http://thread.gmane.org/gmane.comp.jakarta.commons.devel/129715
>
> Actually FTPS support seems to be in a very bad shape, because a lot of
> tests hang:
>
>  - testReadSingleConcurrent
>  - testReadMultipleConcurrent
>  - testInputStreamMultipleCleanup
>  - testConcurrentReadFolder
>  - testCopySameFileSystem
>  - testCopyFromOverwriteSameFileSystem
>  - testCreateDeleteCreateSameFileSystem
>  - testWriteSameFileSystem
>  - testOverwriteSameFileSystem
>  - testAppendContent
>
> :-/
>
> I try to modify the tests in a way, that they fail in such a case instead.
>

Don't all these fail in the same way?

Gary

>
> Cheers,
> Jörg
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>
>


-- 
E-Mail: garydgregory@gmail.com | ggregory@apache.org
JUnit in Action, 2nd Ed: <http://goog_1249600977>http://bit.ly/ECvg0
Spring Batch in Action: <http://s.apache.org/HOq>http://bit.ly/bqpbCK
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory

Re: [VFS] State of FtpsProviderTestCase

Posted by Jörg Schaible <Jo...@scalaris.com>.
Hi Gary,

Gary Gregory wrote:

> On Tue, Feb 19, 2013 at 12:57 PM, Gary Gregory
> <ga...@gmail.com>wrote:
> 
>> On Tue, Feb 19, 2013 at 10:41 AM, Jörg Schaible <
>> Joerg.Schaible@scalaris.com> wrote:
>>
>>> Hi,
>>>
>>> can someone enlighten me about the state of the FtpsProviderTestCase?
>>> It's currently disabled and when I (rename it and) run it with Maven it
>>> simply hangs. Why is it possible to open two input stream on the same
>>> object with FTP but not FTPS?
>>>
>>
>> I created and disabled this test a while back. I never got very far
>> debugging it aside from seeing it hang in the debugger and asking for
>> help on the ML and on the Commons ML for [net]. I though I created a JIRA
>> for this but now I cannot find it.
>>
> 
> @#$% mail filters!
> 
> Apache will not let through emails I write with a URL that points to the
> email thread from April 2012. So search for an email thread titled
> "[NET][VFS] Help with FTPS hanging tests"... Grrr...

thanks for the private pointer, I try it now with a link to Gmane:
http://thread.gmane.org/gmane.comp.jakarta.commons.devel/129715

Actually FTPS support seems to be in a very bad shape, because a lot of 
tests hang:

 - testReadSingleConcurrent
 - testReadMultipleConcurrent
 - testInputStreamMultipleCleanup
 - testConcurrentReadFolder
 - testCopySameFileSystem
 - testCopyFromOverwriteSameFileSystem
 - testCreateDeleteCreateSameFileSystem
 - testWriteSameFileSystem
 - testOverwriteSameFileSystem
 - testAppendContent

:-/

I try to modify the tests in a way, that they fail in such a case instead.

Cheers,
Jörg


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


Re: [VFS] State of FtpsProviderTestCase

Posted by Gary Gregory <ga...@gmail.com>.
On Tue, Feb 19, 2013 at 12:57 PM, Gary Gregory <ga...@gmail.com>wrote:

> On Tue, Feb 19, 2013 at 10:41 AM, Jörg Schaible <
> Joerg.Schaible@scalaris.com> wrote:
>
>> Hi,
>>
>> can someone enlighten me about the state of the FtpsProviderTestCase? It's
>> currently disabled and when I (rename it and) run it with Maven it simply
>> hangs. Why is it possible to open two input stream on the same object with
>> FTP but not FTPS?
>>
>
> I created and disabled this test a while back. I never got very far
> debugging it aside from seeing it hang in the debugger and asking for help
> on the ML and on the Commons ML for [net]. I though I created a JIRA for
> this but now I cannot find it.
>

@#$% mail filters!

Apache will not let through emails I write with a URL that points to the
email thread from April 2012. So search for an email thread titled
"[NET][VFS] Help with FTPS hanging tests"... Grrr...

Gary


>
> Gary
>
>
>>
>> Cheers,
>> Jörg
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
>> For additional commands, e-mail: dev-help@commons.apache.org
>>
>>
>
>
> --
> E-Mail: garydgregory@gmail.com | ggregory@apache.org
> JUnit in Action, 2nd Ed: <http://goog_1249600977>http://bit.ly/ECvg0
> Spring Batch in Action: <http://s.apache.org/HOq>http://bit.ly/bqpbCK
> Blog: http://garygregory.wordpress.com
> Home: http://garygregory.com/
> Tweet! http://twitter.com/GaryGregory
>



-- 
E-Mail: garydgregory@gmail.com | ggregory@apache.org
JUnit in Action, 2nd Ed: <http://goog_1249600977>http://bit.ly/ECvg0
Spring Batch in Action: <http://s.apache.org/HOq>http://bit.ly/bqpbCK
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory

Re: [VFS] State of FtpsProviderTestCase

Posted by Gary Gregory <ga...@gmail.com>.
On Tue, Feb 19, 2013 at 10:41 AM, Jörg Schaible <Joerg.Schaible@scalaris.com
> wrote:

> Hi,
>
> can someone enlighten me about the state of the FtpsProviderTestCase? It's
> currently disabled and when I (rename it and) run it with Maven it simply
> hangs. Why is it possible to open two input stream on the same object with
> FTP but not FTPS?
>

I created and disabled this test a while back. I never got very far
debugging it aside from seeing it hang in the debugger and asking for help
on the ML and on the Commons ML for [net]. I though I created a JIRA for
this but now I cannot find it.

Gary


>
> Cheers,
> Jörg
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>
>


-- 
E-Mail: garydgregory@gmail.com | ggregory@apache.org
JUnit in Action, 2nd Ed: <http://goog_1249600977>http://bit.ly/ECvg0
Spring Batch in Action: <http://s.apache.org/HOq>http://bit.ly/bqpbCK
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory