DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=39536>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=39536 Summary: scp: protocol error: received directory without -r Product: Ant Version: 1.6.1 Platform: PC OS/Version: AIX Status: NEW Severity: blocker Priority: P2 Component: Optional Tasks AssignedTo: [email protected] ReportedBy: [EMAIL PROTECTED] We started receiving this error after our AIX server was upgraded from 5.2 to 5.3 >From a discussion about this on the JSch forums at: http://sourceforge.net/mailarchive/forum.php? forum_id=12628&max_rows=25&style=nested&viewmonth=200412 it seems like it's related to differences between OpenSSH 3.4 and 3.9 The patch described in this post fixed our problem so it seemed like something that might be good for the official Ant release. http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/ssh/scp.c.diff? r1=1.113&r2=1.114 diff -Naur apache-ant- 1.6.2/src/main/org/apache/tools/ant/taskdefs/optional/ssh/ScpToMessage.java apache-ant- 1.6.2.new/src/main/org/apache/tools/ant/taskdefs/optional/ssh/ScpToMessage.java --apache-ant- 1.6.2/src/main/org/apache/tools/ant/taskdefs/optional/ssh/ScpToMessage.java Fri Jul 16 00:57:40 2004 +++ apache-ant- 1.6.2.new/src/main/org/apache/tools/ant/taskdefs/optional/ssh/ScpToMessage.java Sat Dec 18 05:51:39 2004 @@ -112,7 +112,7 @@ } private void doMultipleTransfer() throws IOException, JSchException { - Channel channel = openExecChannel("scp -d -t " + remotePath); + Channel channel = openExecChannel("scp -r -d -t " + remotePath); try { OutputStream out = channel.getOutputStream(); InputStream in = channel.getInputStream(); Here's the build target that we encountered the error with: <target name="send" depends="fix"> <scp todir="${remote.path}" trust="true" keyfile="${key.filepath}" passphrase="${key.passphrase}"> <fileset dir="${src}"> <include name="build.sh" /> <include name="Makefile" /> <include name="drop/*.*" /> <include name="schema*/**/*.*" /> <include name="data/**/*.*" /> </fileset> </scp> </target> We're running the build script on a W2K PC, transfering files to an AIX 5.3 server Thanks! -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
