jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven 2.x Antrun Plugin
  • MANTRUN-174

@ Symbols in path name confusing host resolution.

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: 1.7
  • Fix Version/s: None
  • Labels:
    None
  • Environment:
    Linux Ubuntu

Description

I want to use an SCP target directory that has an "@" in it, like this : 2011-12-12@15:26:11.

the scp command from effective-pom looks like this (users and passwords replaced):

<scp todir="user:password@hostname:/project/releases/2011-12-12@15:26:11/mule-3.2.0/apps/" file="/usr/local/src/project/mule/myapp/target/myapp-1.0-SNAPSHOT.zip" trust="true" failonerror="true" />

This results in this slightly odd error:

[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] An Ant BuildException has occured: com.jcraft.jsch.JSchException: java.net.SocketException: Invalid argument or cannot assign requested address
around Ant part ...<scp todir="user:password@hostname:/project/releases/2011-12-12@15:26:11/mule-3.2.0/apps/" file="/usr/local/src/project/mule/myapp/target/myapp-1.0-SNAPSHOT.zip" trust="true" failonerror="true"/>... @ 13:242 in /usr/local/src/whitelabel/mule/boot-config/target/antrun/build-main.xml

Before that it says:

[scp] Connecting to 15:22

This should actually say

[scp] Connecting to hostname:22

This is a problem with the plugin and not scp itself because if I use those paths directly with SCP on the command line it is fine. from testing it seems to looks for the LAST match in the line that looks something like "@[a-z0-8]+:" i.e. between an "@" and a ":" however if there is more than one match it's probably going to be the first one.

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
There are no comments yet on this issue.

People

  • Assignee:
    Unassigned
    Reporter:
    Dave Fennell
Vote (0)
Watch (0)

Dates

  • Created:
    12/Dec/11 9:51 AM
    Updated:
    12/Dec/11 9:51 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.