You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2006/05/09 22:28:38 UTC

DO NOT REPLY [Bug 39536] New: - scp: protocol error: received directory without -r

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: dev@ant.apache.org
        ReportedBy: fcalfo@yahoo.com


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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


DO NOT REPLY [Bug 39536] - scp: protocol error: received directory without -r

Posted by bu...@apache.org.
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


gudnabrsam@yahoo.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |




------- Additional Comments From gudnabrsam@yahoo.com  2006-05-11 19:13 -------
It is a duplicate, and was actually fixed for version 1.6.3.  1.6.3 and 1.6.4
had showstopper bugs in them, but if you use 1.6.5 you should be in good shape.

-- 
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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


DO NOT REPLY [Bug 39536] - scp: protocol error: received directory without -r

Posted by bu...@apache.org.
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





------- Additional Comments From ymnk@jcraft.com  2006-05-10 03:34 -------
(In reply to comment #0)
> 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.
...

That patch has been already applied[1] to SVN trunk.
Please try recent nightly build.


[1]
http://svn.apache.org/viewcvs.cgi/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/ssh/ScpToMessage.java?rev=277253&r1=277184&r2=277253

-- 
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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


DO NOT REPLY [Bug 39536] - scp: protocol error: received directory without -r

Posted by bu...@apache.org.
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


gudnabrsam@yahoo.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO




------- Additional Comments From gudnabrsam@yahoo.com  2006-05-10 13:58 -------
after checking, please report here and change status from NEEDINFO as appropriate.

Thanks,
Matt

-- 
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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


DO NOT REPLY [Bug 39536] - scp: protocol error: received directory without -r

Posted by bu...@apache.org.
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


gudnabrsam@yahoo.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |DUPLICATE




------- Additional Comments From gudnabrsam@yahoo.com  2006-05-11 19:13 -------


*** This bug has been marked as a duplicate of 31939 ***

-- 
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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


DO NOT REPLY [Bug 39536] - scp: protocol error: received directory without -r

Posted by bu...@apache.org.
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


fcalfo@yahoo.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |RESOLVED
         Resolution|                            |FIXED




------- Additional Comments From fcalfo@yahoo.com  2006-05-11 18:11 -------
(In reply to comment #2)
> after checking, please report here and change status from NEEDINFO as 
appropriate.
> Thanks,
> Matt

Ok - thanks - is there a tracking number for this patch so I can detect it in 
the next production release ?  Is this a duplicate of another bug ?

-- 
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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org