Uploaded image for project: 'Maven Wagon'
  1. Maven Wagon
  2. WAGON-258

SSH / SCP -o options should be quoted

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.0-beta-5
    • Fix Version/s: None
    • Component/s: wagon-ssh-external
    • Labels:
      None
    • Environment:
      Maven 2.1.0 and Java 1.5.0_15

      Description

      I'm currently using Reflection Secure IT, which requires all SSH / SCP -o options
      be placed in quotations unfortunately I cannot deviate from this technology.
      The problem is that ScpExternalWagon.java places the BatchMode option as an
      argument without quotes resulting in a failing SSH command.

      Line 251 of ScpExternalWagon.java
      cl.createArgument().setValue( "BatchMode yes" );

      Results in...
      ssh -o BatchMode yes [REST OF COMMAND]

      What I need is...
      ssh -o "BatchMode yes" [REST OF COMMAND]

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                timothyriley Timothy Riley
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: