Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-5569

Cannot pass commands to client script when sftpEnabled=false

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.1.4, 4.2.0
    • Fix Version/s: 4.2.0, 4.1.5
    • Component/s: None
    • Labels:
      None

      Description

      When sftpEnabed option is set to false in org.apache.karaf.shell.cfg the client script hangs if it was passed in a command to run. For example the following will hang:

      bin/client list

      The issue seems to be that when sftp is disabled the command factory is never set on the ssh server in shell/ssh/src/main/java/org/apache/karaf/shell/ssh/Activator.java resulting in a failure here https://github.com/apache/mina-sshd/blob/master/sshd-core/src/main/java/org/apache/sshd/server/channel/ChannelSession.java#L519

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jbonofre Jean-Baptiste Onofré
                Reporter:
                clockard79@gmail.com Christopher Lockard
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: