You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Andreas Asmuss (JIRA)" <ji...@apache.org> on 2010/07/21 11:08:53 UTC

[jira] Created: (CAMEL-2979) FtpComponent: If login fails and disconnect=true another connection is opened.

FtpComponent: If login fails and disconnect=true another connection is opened.
------------------------------------------------------------------------------

                 Key: CAMEL-2979
                 URL: https://issues.apache.org/activemq/browse/CAMEL-2979
             Project: Apache Camel
          Issue Type: Bug
          Components: camel-ftp
    Affects Versions: 2.4.0
            Reporter: Andreas Asmuss
            Priority: Minor
             Fix For: 2.5.0


In a route such as below a second connection to the ftp server is opened if the login fails.

<route> 
        <from uri="ftp:localhost/inbox/?username=usr&password=pwd&disconnect=true&consumer.delay=60s&maximumReconnectAttempts=0" /> 
        <to uri="file:test_data" /> 
</route> 

Further description: http://camel.465427.n5.nabble.com/FTP-Try-login-once-and-disconnect-if-failure-td1692660.html#a1692660



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (CAMEL-2979) FtpComponent: If login fails and disconnect=true another connection is opened.

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-2979?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen reassigned CAMEL-2979:
----------------------------------

    Assignee: Claus Ibsen

> FtpComponent: If login fails and disconnect=true another connection is opened.
> ------------------------------------------------------------------------------
>
>                 Key: CAMEL-2979
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2979
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-ftp
>    Affects Versions: 2.4.0
>            Reporter: Andreas Asmuss
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.5.0
>
>
> In a route such as below a second connection to the ftp server is opened if the login fails.
> <route> 
>         <from uri="ftp:localhost/inbox/?username=usr&password=pwd&disconnect=true&consumer.delay=60s&maximumReconnectAttempts=0" /> 
>         <to uri="file:test_data" /> 
> </route> 
> Further description: http://camel.465427.n5.nabble.com/FTP-Try-login-once-and-disconnect-if-failure-td1692660.html#a1692660

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-2979) FtpComponent: If login fails and disconnect=true another connection is opened.

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2979?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=60849#action_60849 ] 

Claus Ibsen commented on CAMEL-2979:
------------------------------------

Andreas if you want to test this you need to update both camel-core and camel-ftp to 2.5-SNAPSHOT versions.

Apache should build and upload SNAPSHOTs nighly on their maven server. You can see details here
http://camel.apache.org/download.html

Otherwise I can attach the .jars to this ticket.

> FtpComponent: If login fails and disconnect=true another connection is opened.
> ------------------------------------------------------------------------------
>
>                 Key: CAMEL-2979
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2979
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-ftp
>    Affects Versions: 2.4.0
>            Reporter: Andreas Asmuss
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.5.0
>
>
> In a route such as below a second connection to the ftp server is opened if the login fails.
> <route> 
>         <from uri="ftp:localhost/inbox/?username=usr&password=pwd&disconnect=true&consumer.delay=60s&maximumReconnectAttempts=0" /> 
>         <to uri="file:test_data" /> 
> </route> 
> Further description: http://camel.465427.n5.nabble.com/FTP-Try-login-once-and-disconnect-if-failure-td1692660.html#a1692660

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-2979) FtpComponent: If login fails and disconnect=true another connection is opened.

Posted by "Andreas Asmuss (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2979?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=60870#action_60870 ] 

Andreas Asmuss commented on CAMEL-2979:
---------------------------------------

Hi I've tested this and it works.

When logging in with incorrect user/pass it only polls once and skips, which is nice.
However could it be possible for the component to throw an exception as I would like to catch this exception and make sure that no further polls are done to the ftp (ie shut down the route/application).

> FtpComponent: If login fails and disconnect=true another connection is opened.
> ------------------------------------------------------------------------------
>
>                 Key: CAMEL-2979
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2979
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-ftp
>    Affects Versions: 2.4.0
>            Reporter: Andreas Asmuss
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.5.0
>
>
> In a route such as below a second connection to the ftp server is opened if the login fails.
> <route> 
>         <from uri="ftp:localhost/inbox/?username=usr&password=pwd&disconnect=true&consumer.delay=60s&maximumReconnectAttempts=0" /> 
>         <to uri="file:test_data" /> 
> </route> 
> Further description: http://camel.465427.n5.nabble.com/FTP-Try-login-once-and-disconnect-if-failure-td1692660.html#a1692660

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-2979) FtpComponent: If login fails and disconnect=true another connection is opened.

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2979?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=60847#action_60847 ] 

Claus Ibsen commented on CAMEL-2979:
------------------------------------

Ah yeah Camel will re-connect if the first connection fails. I am fixing this so it will not do this if {{maximumReconnectAttempts=0}} as you have configured.

So when you configure {{maximumReconnectAttempts=0}} then Camel should never try to re-connect.

> FtpComponent: If login fails and disconnect=true another connection is opened.
> ------------------------------------------------------------------------------
>
>                 Key: CAMEL-2979
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2979
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-ftp
>    Affects Versions: 2.4.0
>            Reporter: Andreas Asmuss
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.5.0
>
>
> In a route such as below a second connection to the ftp server is opened if the login fails.
> <route> 
>         <from uri="ftp:localhost/inbox/?username=usr&password=pwd&disconnect=true&consumer.delay=60s&maximumReconnectAttempts=0" /> 
>         <to uri="file:test_data" /> 
> </route> 
> Further description: http://camel.465427.n5.nabble.com/FTP-Try-login-once-and-disconnect-if-failure-td1692660.html#a1692660

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (CAMEL-2979) FtpComponent: If login fails and disconnect=true another connection is opened.

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-2979?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-2979.
--------------------------------

    Resolution: Fixed

trunk: 966699, 966700.



> FtpComponent: If login fails and disconnect=true another connection is opened.
> ------------------------------------------------------------------------------
>
>                 Key: CAMEL-2979
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2979
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-ftp
>    Affects Versions: 2.4.0
>            Reporter: Andreas Asmuss
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.5.0
>
>
> In a route such as below a second connection to the ftp server is opened if the login fails.
> <route> 
>         <from uri="ftp:localhost/inbox/?username=usr&password=pwd&disconnect=true&consumer.delay=60s&maximumReconnectAttempts=0" /> 
>         <to uri="file:test_data" /> 
> </route> 
> Further description: http://camel.465427.n5.nabble.com/FTP-Try-login-once-and-disconnect-if-failure-td1692660.html#a1692660

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.