[
https://jira.jboss.org/jira/browse/JBESB-2129?page=com.atlassian.jira.plu...
]
Kevin Conner closed JBESB-2129.
-------------------------------
Resolution: Rejected
- each access logs onto the server
- the client is hardcoded to use ftp (through the normal JDK classes)
Deploying an archive that configures an ftp-provider with
protocol=sftp results in a 5-second session open and close loop, and the service looks for
an FTP server
------------------------------------------------------------------------------------------------------------------------------------------------------------------
Key: JBESB-2129
URL:
https://jira.jboss.org/jira/browse/JBESB-2129
Project: JBoss ESB
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Examples, Transports
Affects Versions: 4.4
Environment: From svn trunk - revision 23499
RHEL5
openssh-4.3p2-26.el5
Reporter: Len DiMaggio
If the helloworld_ftp_action quickstart is modified to use sftp as the protocol:
<ftp-provider name="FTPprovider"
hostname="@FTP_HOSTNAME@" >
<ftp-bus busid="helloFTPChannel" >
<ftp-message-filter
protocol="sftp"
username="@FTP_USERNAME@"
password="@FTP_PASSWORD@"
passive="false"
directory="@FTP_DIRECTORY@"
input-suffix=".dat"
work-suffix=".esbWorking"
post-delete="false"
post-suffix=".COMPLETE"
error-delete="false"
error-suffix=".HAS_ERROR"
/>
</ftp-bus>
</ftp-provider>
And the quickstart's archive is deployed - then the following is seen (infinite loop
at 5 seconds) in the ssh/sftp server's /var/log/secure log:
Oct 17 14:05:28 stacks2 sshd[21652]: Accepted password for jboss from 10.16.10.60 port
57910 ssh2
Oct 17 14:05:28 stacks2 sshd[21652]: pam_unix(sshd:session): session opened for user
jboss by (uid=0)
Oct 17 14:05:28 stacks2 sshd[21693]: subsystem request for sftp
Oct 17 14:05:28 stacks2 sshd[21652]: pam_unix(sshd:session): session closed for user
jboss
Oct 17 14:05:32 stacks2 sshd[21730]: Accepted password for jboss from 10.16.10.60 port
41021 ssh2
Oct 17 14:05:32 stacks2 sshd[21730]: pam_unix(sshd:session): session opened for user
jboss by (uid=0)
Oct 17 14:05:32 stacks2 sshd[21732]: subsystem request for sftp
Oct 17 14:05:32 stacks2 sshd[21730]: pam_unix(sshd:session): session closed for user
jboss
Oct 17 14:05:37 stacks2 sshd[21780]: Accepted password for jboss from 10.16.10.60 port
50161 ssh2
Oct 17 14:05:37 stacks2 sshd[21780]: pam_unix(sshd:session): session opened for user
jboss by (uid=0)
Oct 17 14:05:37 stacks2 sshd[21782]: subsystem request for sftp
Oct 17 14:05:37 stacks2 sshd[21780]: pam_unix(sshd:session): session closed for user
jboss
Oct 17 14:05:42 stacks2 sshd[21836]: Accepted password for jboss from 10.16.10.60 port
57956 ssh2
Oct 17 14:05:42 stacks2 sshd[21836]: pam_unix(sshd:session): session opened for user
jboss by (uid=0)
Oct 17 14:05:42 stacks2 sshd[21839]: subsystem request for sftp
Oct 17 14:05:42 stacks2 sshd[21836]: pam_unix(sshd:session): session closed for user
jboss
The quickstart fails with is error returned to the client (nothing is written to the
server log):
runtest:
[echo] Runs Test FTP File creator
[java] Error obtaining output stream for location:
%2Fhome/jboss/Desktop/HWFtp-17-Oct-08-14-12-31.dat
[java] java.net.ConnectException: Connection refused
[java] at java.net.PlainSocketImpl.socketConnect(Native Method)
[java] at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
[java] at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
[java] at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
[java] at java.net.Socket.connect(Socket.java:520)
[java] at java.net.Socket.connect(Socket.java:470)
[java] at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
[java] at sun.net.NetworkClient.openServer(NetworkClient.java:118)
[java] at sun.net.ftp.FtpClient.openServer(FtpClient.java:488)
[java] at sun.net.ftp.FtpClient.openServer(FtpClient.java:475)
[java] at
sun.net.www.protocol.ftp.FtpURLConnection.connect(FtpURLConnection.java:270)
[java] at
sun.net.www.protocol.ftp.FtpURLConnection.getOutputStream(FtpURLConnection.java:460)
[java] at
org.jboss.soa.esb.samples.quickstart.helloworldftpaction.test.CreateTestFile.main(CreateTestFile.java:79)
But - I'm able to connect to the same ssh/sftp server from the shell of the user
account used to run the ESB server:
[ldimaggi@ldimaggi helloworld_ftp_action]$ sftp jboss(a)stacks2.lab.bos.redhat.com
Connecting to stacks2.lab.bos.redhat.com...
jboss(a)stacks2.lab.bos.redhat.com's password:
sftp> ls
Desktop axis-1.4.jar scout.jar
sftp> quit
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira