You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Eugene Kiselev (Created) (JIRA)" <ji...@apache.org> on 2011/09/30 17:17:45 UTC

[jira] [Created] (CAMEL-4506) The SFTP component: the keyboard-interactive auth method support

The SFTP component: the keyboard-interactive auth method support 
-----------------------------------------------------------------

                 Key: CAMEL-4506
                 URL: https://issues.apache.org/jira/browse/CAMEL-4506
             Project: Camel
          Issue Type: Improvement
          Components: camel-ftp
    Affects Versions: 2.8.1
            Reporter: Eugene Kiselev
            Priority: Trivial


As it was discussed in this topic http://camel.465427.n5.nabble.com/The-SFTP-component-the-keyboard-interactive-auth-method-support-td4853523.html
The SFTP component may be slightly improved to support the keyboard-interactive auth method and the compression,

Preamble:
It appeared that our sftp share we get files from doesn't support the ssh password auth method and we're not allowed to put the public key to there. So the only ssh auth method we can use is the keyboard-interactive. Unfortunately the SFTP camel component doesn't support this.
However this can be easily fixed simply by providing the Jsch session with both the  com.jcraft.jsch.UserInfo and com.jcraft.jsch.UIKeyboardInteractive interfaces. The UIKeyboardInteractive has the only one promptKeyboardInteractive method which returns String[] containing the password entered by user interactively. In our case I simply return a password.
The implementation example is attached.

Also it's sometime required to set the ssh compression to be able to process longsize files. The compression fix is also implemented in the attached file. Compression requires the zlib jar to be in the pom.
This was tested with the 0.1.44-1 version of the jsch and the 1.0.7 version of the jzlib.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Issue Comment Edited] (CAMEL-4506) The SFTP component: the keyboard-interactive auth method support

Posted by "Eugene Kiselev (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4506?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13118860#comment-13118860 ] 

Eugene Kiselev edited comment on CAMEL-4506 at 10/1/11 6:10 PM:
----------------------------------------------------------------

Claus, thank you. 
Sorry I was not certain about how tight this code is linked to zlib as I didn't think about the licence incompatibilities.  So yeah the use of the zlib maybe optional and user is free to choose whatever he wants for the compression. I didn't include any zlib usage in the code itself. 


                
      was (Author: ujeen):
    Clause, thank you. 
Sorry I was not certain about how tight this code is linked to zlib as I didn't think about the licence incompatibilities.  So yeah the use of the zlib maybe optional and user is free to choose whatever he wants for the compression. I didn't include any zlib usage in the code itself. 


                  
> The SFTP component: the keyboard-interactive auth method support 
> -----------------------------------------------------------------
>
>                 Key: CAMEL-4506
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4506
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-ftp
>    Affects Versions: 2.8.1
>            Reporter: Eugene Kiselev
>            Assignee: Hadrian Zbarcea
>            Priority: Trivial
>         Attachments: SftpExtendedEndpoint.java
>
>
> As it was discussed in this topic http://camel.465427.n5.nabble.com/The-SFTP-component-the-keyboard-interactive-auth-method-support-td4853523.html
> The SFTP component may be slightly improved to support the keyboard-interactive auth method and the compression,
> Preamble:
> It appeared that our sftp share we get files from doesn't support the ssh password auth method and we're not allowed to put the public key to there. So the only ssh auth method we can use is the keyboard-interactive. Unfortunately the SFTP camel component doesn't support this.
> However this can be easily fixed simply by providing the Jsch session with both the  com.jcraft.jsch.UserInfo and com.jcraft.jsch.UIKeyboardInteractive interfaces. The UIKeyboardInteractive has the only one promptKeyboardInteractive method which returns String[] containing the password entered by user interactively. In our case I simply return a password.
> The implementation example is attached.
> Also it's sometime required to set the ssh compression to be able to process longsize files. The compression fix is also implemented in the attached file. Compression requires the zlib jar to be in the pom.
> This was tested with the 0.1.44-1 version of the jsch and the 1.0.7 version of the jzlib.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CAMEL-4506) The SFTP component: the keyboard-interactive auth method support

Posted by "Richard Kettelerij (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4506?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13118277#comment-13118277 ] 

Richard Kettelerij commented on CAMEL-4506:
-------------------------------------------

Eugene, thanks for contributing. Would you mind re-attaching your source file and checking the "Grant license to ASF for inclusion in ASF works" radio button? See http://camel.apache.org/contributing.html paragraph "Submitting patches".  
                
> The SFTP component: the keyboard-interactive auth method support 
> -----------------------------------------------------------------
>
>                 Key: CAMEL-4506
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4506
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-ftp
>    Affects Versions: 2.8.1
>            Reporter: Eugene Kiselev
>            Priority: Trivial
>         Attachments: SftpExtendedEndpoint.java
>
>
> As it was discussed in this topic http://camel.465427.n5.nabble.com/The-SFTP-component-the-keyboard-interactive-auth-method-support-td4853523.html
> The SFTP component may be slightly improved to support the keyboard-interactive auth method and the compression,
> Preamble:
> It appeared that our sftp share we get files from doesn't support the ssh password auth method and we're not allowed to put the public key to there. So the only ssh auth method we can use is the keyboard-interactive. Unfortunately the SFTP camel component doesn't support this.
> However this can be easily fixed simply by providing the Jsch session with both the  com.jcraft.jsch.UserInfo and com.jcraft.jsch.UIKeyboardInteractive interfaces. The UIKeyboardInteractive has the only one promptKeyboardInteractive method which returns String[] containing the password entered by user interactively. In our case I simply return a password.
> The implementation example is attached.
> Also it's sometime required to set the ssh compression to be able to process longsize files. The compression fix is also implemented in the attached file. Compression requires the zlib jar to be in the pom.
> This was tested with the 0.1.44-1 version of the jsch and the 1.0.7 version of the jzlib.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAMEL-4506) The SFTP component: the keyboard-interactive auth method support

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

Eugene Kiselev updated CAMEL-4506:
----------------------------------

    Attachment:     (was: SftpExtendedEndpoint.java)
    
> The SFTP component: the keyboard-interactive auth method support 
> -----------------------------------------------------------------
>
>                 Key: CAMEL-4506
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4506
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-ftp
>    Affects Versions: 2.8.1
>            Reporter: Eugene Kiselev
>            Assignee: Hadrian Zbarcea
>            Priority: Trivial
>
> As it was discussed in this topic http://camel.465427.n5.nabble.com/The-SFTP-component-the-keyboard-interactive-auth-method-support-td4853523.html
> The SFTP component may be slightly improved to support the keyboard-interactive auth method and the compression,
> Preamble:
> It appeared that our sftp share we get files from doesn't support the ssh password auth method and we're not allowed to put the public key to there. So the only ssh auth method we can use is the keyboard-interactive. Unfortunately the SFTP camel component doesn't support this.
> However this can be easily fixed simply by providing the Jsch session with both the  com.jcraft.jsch.UserInfo and com.jcraft.jsch.UIKeyboardInteractive interfaces. The UIKeyboardInteractive has the only one promptKeyboardInteractive method which returns String[] containing the password entered by user interactively. In our case I simply return a password.
> The implementation example is attached.
> Also it's sometime required to set the ssh compression to be able to process longsize files. The compression fix is also implemented in the attached file. Compression requires the zlib jar to be in the pom.
> This was tested with the 0.1.44-1 version of the jsch and the 1.0.7 version of the jzlib.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAMEL-4506) The SFTP component: the keyboard-interactive auth method support

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

Daniel Kulp updated CAMEL-4506:
-------------------------------

    Fix Version/s: 2.8.2
    
> The SFTP component: the keyboard-interactive auth method support 
> -----------------------------------------------------------------
>
>                 Key: CAMEL-4506
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4506
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-ftp
>    Affects Versions: 2.8.1
>            Reporter: Eugene Kiselev
>            Assignee: Hadrian Zbarcea
>            Priority: Minor
>             Fix For: 2.8.2, 2.9.0
>
>         Attachments: SftpExtendedEndpoint.java
>
>
> As it was discussed in this topic http://camel.465427.n5.nabble.com/The-SFTP-component-the-keyboard-interactive-auth-method-support-td4853523.html
> The SFTP component may be slightly improved to support the keyboard-interactive auth method and the compression,
> Preamble:
> It appeared that our sftp share we get files from doesn't support the ssh password auth method and we're not allowed to put the public key to there. So the only ssh auth method we can use is the keyboard-interactive. Unfortunately the SFTP camel component doesn't support this.
> However this can be easily fixed simply by providing the Jsch session with both the  com.jcraft.jsch.UserInfo and com.jcraft.jsch.UIKeyboardInteractive interfaces. The UIKeyboardInteractive has the only one promptKeyboardInteractive method which returns String[] containing the password entered by user interactively. In our case I simply return a password.
> The implementation example is attached.
> Also it's sometime required to set the ssh compression to be able to process longsize files. The compression fix is also implemented in the attached file. Compression requires the zlib jar to be in the pom.
> This was tested with the 0.1.44-1 version of the jsch and the 1.0.7 version of the jzlib.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CAMEL-4506) The SFTP component: the keyboard-interactive auth method support

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

Claus Ibsen commented on CAMEL-4506:
------------------------------------

Eugene, it would be better to create a new JIRA ticket for the compression as it will show up better in the release notes. As this ticket is titled about the auth and not about compression.
                
> The SFTP component: the keyboard-interactive auth method support 
> -----------------------------------------------------------------
>
>                 Key: CAMEL-4506
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4506
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-ftp
>    Affects Versions: 2.8.1
>            Reporter: Eugene Kiselev
>            Assignee: Hadrian Zbarcea
>            Priority: Minor
>             Fix For: 2.9.0
>
>         Attachments: SftpExtendedEndpoint.java
>
>
> As it was discussed in this topic http://camel.465427.n5.nabble.com/The-SFTP-component-the-keyboard-interactive-auth-method-support-td4853523.html
> The SFTP component may be slightly improved to support the keyboard-interactive auth method and the compression,
> Preamble:
> It appeared that our sftp share we get files from doesn't support the ssh password auth method and we're not allowed to put the public key to there. So the only ssh auth method we can use is the keyboard-interactive. Unfortunately the SFTP camel component doesn't support this.
> However this can be easily fixed simply by providing the Jsch session with both the  com.jcraft.jsch.UserInfo and com.jcraft.jsch.UIKeyboardInteractive interfaces. The UIKeyboardInteractive has the only one promptKeyboardInteractive method which returns String[] containing the password entered by user interactively. In our case I simply return a password.
> The implementation example is attached.
> Also it's sometime required to set the ssh compression to be able to process longsize files. The compression fix is also implemented in the attached file. Compression requires the zlib jar to be in the pom.
> This was tested with the 0.1.44-1 version of the jsch and the 1.0.7 version of the jzlib.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (CAMEL-4506) The SFTP component: the keyboard-interactive auth method support

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

Hadrian Zbarcea reassigned CAMEL-4506:
--------------------------------------

    Assignee: Hadrian Zbarcea
    
> The SFTP component: the keyboard-interactive auth method support 
> -----------------------------------------------------------------
>
>                 Key: CAMEL-4506
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4506
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-ftp
>    Affects Versions: 2.8.1
>            Reporter: Eugene Kiselev
>            Assignee: Hadrian Zbarcea
>            Priority: Trivial
>         Attachments: SftpExtendedEndpoint.java
>
>
> As it was discussed in this topic http://camel.465427.n5.nabble.com/The-SFTP-component-the-keyboard-interactive-auth-method-support-td4853523.html
> The SFTP component may be slightly improved to support the keyboard-interactive auth method and the compression,
> Preamble:
> It appeared that our sftp share we get files from doesn't support the ssh password auth method and we're not allowed to put the public key to there. So the only ssh auth method we can use is the keyboard-interactive. Unfortunately the SFTP camel component doesn't support this.
> However this can be easily fixed simply by providing the Jsch session with both the  com.jcraft.jsch.UserInfo and com.jcraft.jsch.UIKeyboardInteractive interfaces. The UIKeyboardInteractive has the only one promptKeyboardInteractive method which returns String[] containing the password entered by user interactively. In our case I simply return a password.
> The implementation example is attached.
> Also it's sometime required to set the ssh compression to be able to process longsize files. The compression fix is also implemented in the attached file. Compression requires the zlib jar to be in the pom.
> This was tested with the 0.1.44-1 version of the jsch and the 1.0.7 version of the jzlib.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAMEL-4506) The SFTP component: the keyboard-interactive auth method support

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

Claus Ibsen updated CAMEL-4506:
-------------------------------

         Priority: Minor  (was: Trivial)
    Fix Version/s: 2.9.0
    
> The SFTP component: the keyboard-interactive auth method support 
> -----------------------------------------------------------------
>
>                 Key: CAMEL-4506
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4506
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-ftp
>    Affects Versions: 2.8.1
>            Reporter: Eugene Kiselev
>            Assignee: Hadrian Zbarcea
>            Priority: Minor
>             Fix For: 2.9.0
>
>         Attachments: SftpExtendedEndpoint.java
>
>
> As it was discussed in this topic http://camel.465427.n5.nabble.com/The-SFTP-component-the-keyboard-interactive-auth-method-support-td4853523.html
> The SFTP component may be slightly improved to support the keyboard-interactive auth method and the compression,
> Preamble:
> It appeared that our sftp share we get files from doesn't support the ssh password auth method and we're not allowed to put the public key to there. So the only ssh auth method we can use is the keyboard-interactive. Unfortunately the SFTP camel component doesn't support this.
> However this can be easily fixed simply by providing the Jsch session with both the  com.jcraft.jsch.UserInfo and com.jcraft.jsch.UIKeyboardInteractive interfaces. The UIKeyboardInteractive has the only one promptKeyboardInteractive method which returns String[] containing the password entered by user interactively. In our case I simply return a password.
> The implementation example is attached.
> Also it's sometime required to set the ssh compression to be able to process longsize files. The compression fix is also implemented in the attached file. Compression requires the zlib jar to be in the pom.
> This was tested with the 0.1.44-1 version of the jsch and the 1.0.7 version of the jzlib.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAMEL-4506) The SFTP component: the keyboard-interactive auth method support

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

Eugene Kiselev updated CAMEL-4506:
----------------------------------

    Comment: was deleted

(was: The file has been replaced with the new one with no compression fix inside. It now contains only the small keyboard-interactive method fix. So the license is not issue anymore.)
    
> The SFTP component: the keyboard-interactive auth method support 
> -----------------------------------------------------------------
>
>                 Key: CAMEL-4506
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4506
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-ftp
>    Affects Versions: 2.8.1
>            Reporter: Eugene Kiselev
>            Assignee: Hadrian Zbarcea
>            Priority: Trivial
>         Attachments: SftpExtendedEndpoint.java
>
>
> As it was discussed in this topic http://camel.465427.n5.nabble.com/The-SFTP-component-the-keyboard-interactive-auth-method-support-td4853523.html
> The SFTP component may be slightly improved to support the keyboard-interactive auth method and the compression,
> Preamble:
> It appeared that our sftp share we get files from doesn't support the ssh password auth method and we're not allowed to put the public key to there. So the only ssh auth method we can use is the keyboard-interactive. Unfortunately the SFTP camel component doesn't support this.
> However this can be easily fixed simply by providing the Jsch session with both the  com.jcraft.jsch.UserInfo and com.jcraft.jsch.UIKeyboardInteractive interfaces. The UIKeyboardInteractive has the only one promptKeyboardInteractive method which returns String[] containing the password entered by user interactively. In our case I simply return a password.
> The implementation example is attached.
> Also it's sometime required to set the ssh compression to be able to process longsize files. The compression fix is also implemented in the attached file. Compression requires the zlib jar to be in the pom.
> This was tested with the 0.1.44-1 version of the jsch and the 1.0.7 version of the jzlib.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (CAMEL-4506) The SFTP component: the keyboard-interactive auth method support

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

Claus Ibsen resolved CAMEL-4506.
--------------------------------

    Resolution: Fixed
    
> The SFTP component: the keyboard-interactive auth method support 
> -----------------------------------------------------------------
>
>                 Key: CAMEL-4506
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4506
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-ftp
>    Affects Versions: 2.8.1
>            Reporter: Eugene Kiselev
>            Assignee: Hadrian Zbarcea
>            Priority: Minor
>             Fix For: 2.9.0
>
>         Attachments: SftpExtendedEndpoint.java
>
>
> As it was discussed in this topic http://camel.465427.n5.nabble.com/The-SFTP-component-the-keyboard-interactive-auth-method-support-td4853523.html
> The SFTP component may be slightly improved to support the keyboard-interactive auth method and the compression,
> Preamble:
> It appeared that our sftp share we get files from doesn't support the ssh password auth method and we're not allowed to put the public key to there. So the only ssh auth method we can use is the keyboard-interactive. Unfortunately the SFTP camel component doesn't support this.
> However this can be easily fixed simply by providing the Jsch session with both the  com.jcraft.jsch.UserInfo and com.jcraft.jsch.UIKeyboardInteractive interfaces. The UIKeyboardInteractive has the only one promptKeyboardInteractive method which returns String[] containing the password entered by user interactively. In our case I simply return a password.
> The implementation example is attached.
> Also it's sometime required to set the ssh compression to be able to process longsize files. The compression fix is also implemented in the attached file. Compression requires the zlib jar to be in the pom.
> This was tested with the 0.1.44-1 version of the jsch and the 1.0.7 version of the jzlib.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CAMEL-4506) The SFTP component: the keyboard-interactive auth method support

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

Claus Ibsen commented on CAMEL-4506:
------------------------------------

Eugene do you mind attaching a 2nd patch with the compression patch. We may be able to add to the wiki pages a note that people must add the compression library manually.

I am adjusting your patch a bit to make the changes directly in the SftpOperations class.
                
> The SFTP component: the keyboard-interactive auth method support 
> -----------------------------------------------------------------
>
>                 Key: CAMEL-4506
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4506
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-ftp
>    Affects Versions: 2.8.1
>            Reporter: Eugene Kiselev
>            Assignee: Hadrian Zbarcea
>            Priority: Trivial
>         Attachments: SftpExtendedEndpoint.java
>
>
> As it was discussed in this topic http://camel.465427.n5.nabble.com/The-SFTP-component-the-keyboard-interactive-auth-method-support-td4853523.html
> The SFTP component may be slightly improved to support the keyboard-interactive auth method and the compression,
> Preamble:
> It appeared that our sftp share we get files from doesn't support the ssh password auth method and we're not allowed to put the public key to there. So the only ssh auth method we can use is the keyboard-interactive. Unfortunately the SFTP camel component doesn't support this.
> However this can be easily fixed simply by providing the Jsch session with both the  com.jcraft.jsch.UserInfo and com.jcraft.jsch.UIKeyboardInteractive interfaces. The UIKeyboardInteractive has the only one promptKeyboardInteractive method which returns String[] containing the password entered by user interactively. In our case I simply return a password.
> The implementation example is attached.
> Also it's sometime required to set the ssh compression to be able to process longsize files. The compression fix is also implemented in the attached file. Compression requires the zlib jar to be in the pom.
> This was tested with the 0.1.44-1 version of the jsch and the 1.0.7 version of the jzlib.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CAMEL-4506) The SFTP component: the keyboard-interactive auth method support

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

Claus Ibsen commented on CAMEL-4506:
------------------------------------

It looks like the compression thing does not in the code require a compile time dependency on the LGPL library. So we may possible be able to add a compression option, the end users can enable, and then the end users must by themselves add the LPGL library.
                
> The SFTP component: the keyboard-interactive auth method support 
> -----------------------------------------------------------------
>
>                 Key: CAMEL-4506
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4506
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-ftp
>    Affects Versions: 2.8.1
>            Reporter: Eugene Kiselev
>            Assignee: Hadrian Zbarcea
>            Priority: Trivial
>         Attachments: SftpExtendedEndpoint.java
>
>
> As it was discussed in this topic http://camel.465427.n5.nabble.com/The-SFTP-component-the-keyboard-interactive-auth-method-support-td4853523.html
> The SFTP component may be slightly improved to support the keyboard-interactive auth method and the compression,
> Preamble:
> It appeared that our sftp share we get files from doesn't support the ssh password auth method and we're not allowed to put the public key to there. So the only ssh auth method we can use is the keyboard-interactive. Unfortunately the SFTP camel component doesn't support this.
> However this can be easily fixed simply by providing the Jsch session with both the  com.jcraft.jsch.UserInfo and com.jcraft.jsch.UIKeyboardInteractive interfaces. The UIKeyboardInteractive has the only one promptKeyboardInteractive method which returns String[] containing the password entered by user interactively. In our case I simply return a password.
> The implementation example is attached.
> Also it's sometime required to set the ssh compression to be able to process longsize files. The compression fix is also implemented in the attached file. Compression requires the zlib jar to be in the pom.
> This was tested with the 0.1.44-1 version of the jsch and the 1.0.7 version of the jzlib.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CAMEL-4506) The SFTP component: the keyboard-interactive auth method support

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

Claus Ibsen commented on CAMEL-4506:
------------------------------------

I think there was 2 things int the patch
- keyboard
- compression

And the latter required the LGPL library. So we may ask Eugene for a new patch which only includes the keyboard thing.
                
> The SFTP component: the keyboard-interactive auth method support 
> -----------------------------------------------------------------
>
>                 Key: CAMEL-4506
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4506
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-ftp
>    Affects Versions: 2.8.1
>            Reporter: Eugene Kiselev
>            Assignee: Hadrian Zbarcea
>            Priority: Trivial
>         Attachments: SftpExtendedEndpoint.java
>
>
> As it was discussed in this topic http://camel.465427.n5.nabble.com/The-SFTP-component-the-keyboard-interactive-auth-method-support-td4853523.html
> The SFTP component may be slightly improved to support the keyboard-interactive auth method and the compression,
> Preamble:
> It appeared that our sftp share we get files from doesn't support the ssh password auth method and we're not allowed to put the public key to there. So the only ssh auth method we can use is the keyboard-interactive. Unfortunately the SFTP camel component doesn't support this.
> However this can be easily fixed simply by providing the Jsch session with both the  com.jcraft.jsch.UserInfo and com.jcraft.jsch.UIKeyboardInteractive interfaces. The UIKeyboardInteractive has the only one promptKeyboardInteractive method which returns String[] containing the password entered by user interactively. In our case I simply return a password.
> The implementation example is attached.
> Also it's sometime required to set the ssh compression to be able to process longsize files. The compression fix is also implemented in the attached file. Compression requires the zlib jar to be in the pom.
> This was tested with the 0.1.44-1 version of the jsch and the 1.0.7 version of the jzlib.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CAMEL-4506) The SFTP component: the keyboard-interactive auth method support

Posted by "Hadrian Zbarcea (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4506?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13118283#comment-13118283 ] 

Hadrian Zbarcea commented on CAMEL-4506:
----------------------------------------

On the users@ list, Eugene indicated that his contribution requires a dependency released under LGPL (com.jcraft:jzlib). Contributions with dependencies on non-approved licenses [1] cannot be accepted. From what I see jzlib is licensed under LGPL [2].

[1] http://www.apache.org/legal/resolved.html#category-x
[2] http://www.jcraft.com/jzlib/LICENSE.txt

                
> The SFTP component: the keyboard-interactive auth method support 
> -----------------------------------------------------------------
>
>                 Key: CAMEL-4506
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4506
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-ftp
>    Affects Versions: 2.8.1
>            Reporter: Eugene Kiselev
>            Assignee: Hadrian Zbarcea
>            Priority: Trivial
>         Attachments: SftpExtendedEndpoint.java
>
>
> As it was discussed in this topic http://camel.465427.n5.nabble.com/The-SFTP-component-the-keyboard-interactive-auth-method-support-td4853523.html
> The SFTP component may be slightly improved to support the keyboard-interactive auth method and the compression,
> Preamble:
> It appeared that our sftp share we get files from doesn't support the ssh password auth method and we're not allowed to put the public key to there. So the only ssh auth method we can use is the keyboard-interactive. Unfortunately the SFTP camel component doesn't support this.
> However this can be easily fixed simply by providing the Jsch session with both the  com.jcraft.jsch.UserInfo and com.jcraft.jsch.UIKeyboardInteractive interfaces. The UIKeyboardInteractive has the only one promptKeyboardInteractive method which returns String[] containing the password entered by user interactively. In our case I simply return a password.
> The implementation example is attached.
> Also it's sometime required to set the ssh compression to be able to process longsize files. The compression fix is also implemented in the attached file. Compression requires the zlib jar to be in the pom.
> This was tested with the 0.1.44-1 version of the jsch and the 1.0.7 version of the jzlib.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAMEL-4506) The SFTP component: the keyboard-interactive auth method support

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

Eugene Kiselev updated CAMEL-4506:
----------------------------------

    Attachment: SftpExtendedEndpoint.java

The compression related code has been removed. Now this file contains only the keyboard-interactive method fix.
                
> The SFTP component: the keyboard-interactive auth method support 
> -----------------------------------------------------------------
>
>                 Key: CAMEL-4506
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4506
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-ftp
>    Affects Versions: 2.8.1
>            Reporter: Eugene Kiselev
>            Assignee: Hadrian Zbarcea
>            Priority: Trivial
>         Attachments: SftpExtendedEndpoint.java
>
>
> As it was discussed in this topic http://camel.465427.n5.nabble.com/The-SFTP-component-the-keyboard-interactive-auth-method-support-td4853523.html
> The SFTP component may be slightly improved to support the keyboard-interactive auth method and the compression,
> Preamble:
> It appeared that our sftp share we get files from doesn't support the ssh password auth method and we're not allowed to put the public key to there. So the only ssh auth method we can use is the keyboard-interactive. Unfortunately the SFTP camel component doesn't support this.
> However this can be easily fixed simply by providing the Jsch session with both the  com.jcraft.jsch.UserInfo and com.jcraft.jsch.UIKeyboardInteractive interfaces. The UIKeyboardInteractive has the only one promptKeyboardInteractive method which returns String[] containing the password entered by user interactively. In our case I simply return a password.
> The implementation example is attached.
> Also it's sometime required to set the ssh compression to be able to process longsize files. The compression fix is also implemented in the attached file. Compression requires the zlib jar to be in the pom.
> This was tested with the 0.1.44-1 version of the jsch and the 1.0.7 version of the jzlib.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CAMEL-4506) The SFTP component: the keyboard-interactive auth method support

Posted by "Eugene Kiselev (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4506?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13119277#comment-13119277 ] 

Eugene Kiselev commented on CAMEL-4506:
---------------------------------------

The file has been replaced with the new one with no compression fix inside. It now contains only the small keyboard-interactive method fix. So the license is not issue anymore.
                
> The SFTP component: the keyboard-interactive auth method support 
> -----------------------------------------------------------------
>
>                 Key: CAMEL-4506
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4506
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-ftp
>    Affects Versions: 2.8.1
>            Reporter: Eugene Kiselev
>            Assignee: Hadrian Zbarcea
>            Priority: Trivial
>         Attachments: SftpExtendedEndpoint.java
>
>
> As it was discussed in this topic http://camel.465427.n5.nabble.com/The-SFTP-component-the-keyboard-interactive-auth-method-support-td4853523.html
> The SFTP component may be slightly improved to support the keyboard-interactive auth method and the compression,
> Preamble:
> It appeared that our sftp share we get files from doesn't support the ssh password auth method and we're not allowed to put the public key to there. So the only ssh auth method we can use is the keyboard-interactive. Unfortunately the SFTP camel component doesn't support this.
> However this can be easily fixed simply by providing the Jsch session with both the  com.jcraft.jsch.UserInfo and com.jcraft.jsch.UIKeyboardInteractive interfaces. The UIKeyboardInteractive has the only one promptKeyboardInteractive method which returns String[] containing the password entered by user interactively. In our case I simply return a password.
> The implementation example is attached.
> Also it's sometime required to set the ssh compression to be able to process longsize files. The compression fix is also implemented in the attached file. Compression requires the zlib jar to be in the pom.
> This was tested with the 0.1.44-1 version of the jsch and the 1.0.7 version of the jzlib.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAMEL-4506) The SFTP component: the keyboard-interactive auth method support

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

Eugene Kiselev updated CAMEL-4506:
----------------------------------

    Attachment: SftpExtendedEndpoint.java
    
> The SFTP component: the keyboard-interactive auth method support 
> -----------------------------------------------------------------
>
>                 Key: CAMEL-4506
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4506
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-ftp
>    Affects Versions: 2.8.1
>            Reporter: Eugene Kiselev
>            Priority: Trivial
>         Attachments: SftpExtendedEndpoint.java
>
>
> As it was discussed in this topic http://camel.465427.n5.nabble.com/The-SFTP-component-the-keyboard-interactive-auth-method-support-td4853523.html
> The SFTP component may be slightly improved to support the keyboard-interactive auth method and the compression,
> Preamble:
> It appeared that our sftp share we get files from doesn't support the ssh password auth method and we're not allowed to put the public key to there. So the only ssh auth method we can use is the keyboard-interactive. Unfortunately the SFTP camel component doesn't support this.
> However this can be easily fixed simply by providing the Jsch session with both the  com.jcraft.jsch.UserInfo and com.jcraft.jsch.UIKeyboardInteractive interfaces. The UIKeyboardInteractive has the only one promptKeyboardInteractive method which returns String[] containing the password entered by user interactively. In our case I simply return a password.
> The implementation example is attached.
> Also it's sometime required to set the ssh compression to be able to process longsize files. The compression fix is also implemented in the attached file. Compression requires the zlib jar to be in the pom.
> This was tested with the 0.1.44-1 version of the jsch and the 1.0.7 version of the jzlib.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CAMEL-4506) The SFTP component: the keyboard-interactive auth method support

Posted by "Eugene Kiselev (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4506?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13118860#comment-13118860 ] 

Eugene Kiselev commented on CAMEL-4506:
---------------------------------------

Clause, thank you. 
Sorry I was not certain about how tight this code is linked to zlib as I didn't think about the licence incompatibilities.  So yeah the use of the zlib maybe optional and user is free to choose whatever he wants for the compression. I didn't include any zlib usage in the code itself. 


                
> The SFTP component: the keyboard-interactive auth method support 
> -----------------------------------------------------------------
>
>                 Key: CAMEL-4506
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4506
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-ftp
>    Affects Versions: 2.8.1
>            Reporter: Eugene Kiselev
>            Assignee: Hadrian Zbarcea
>            Priority: Trivial
>         Attachments: SftpExtendedEndpoint.java
>
>
> As it was discussed in this topic http://camel.465427.n5.nabble.com/The-SFTP-component-the-keyboard-interactive-auth-method-support-td4853523.html
> The SFTP component may be slightly improved to support the keyboard-interactive auth method and the compression,
> Preamble:
> It appeared that our sftp share we get files from doesn't support the ssh password auth method and we're not allowed to put the public key to there. So the only ssh auth method we can use is the keyboard-interactive. Unfortunately the SFTP camel component doesn't support this.
> However this can be easily fixed simply by providing the Jsch session with both the  com.jcraft.jsch.UserInfo and com.jcraft.jsch.UIKeyboardInteractive interfaces. The UIKeyboardInteractive has the only one promptKeyboardInteractive method which returns String[] containing the password entered by user interactively. In our case I simply return a password.
> The implementation example is attached.
> Also it's sometime required to set the ssh compression to be able to process longsize files. The compression fix is also implemented in the attached file. Compression requires the zlib jar to be in the pom.
> This was tested with the 0.1.44-1 version of the jsch and the 1.0.7 version of the jzlib.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira