tracker issue : CF-3040312

select a category, or use search below
(searches all categories and all time range)
Title:

Bug 80386:I'm trying to use the Coldfusion 9 <CFFTP> tag to securely connect to a remote SFTP server

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Carl Bourne / Carl Bourne (CarlB)

Created: 10/15/2009

Components: General Server

Versions: 9.0

Failure Type: Unspecified

Found In Build/Fixed In Build: 0000 / 263378

Priority/Frequency: Normal / Unknown

Locale/System: English / Mac 10 All

Vote Count: 5

Problem:

I'm trying to use the Coldfusion 9 <CFFTP> tag to securely connect to a remote SFTP server. However I just get an invalid data message. I've tried this using CF9 on Windows and MAC OSX.  I've tried connecting to several differnt SFTP servers.The server version is:- SSH-2.0-OpenSSH_4.7p1 Debian-8ubuntu1.2
Method:

<cfftp action = "open"username = "myusername"connection = "MyConnection"password = "mypassword"server = "myserver.com"secure = "yes"><p>Successful: <cfoutput>#cfftp.succeeded#</cfoutput><cfdump var ="#MyConnection#" label="connection">
Result:

An error occurred while establishing an sFTP connection.Verify your connection attributes: username, password, server, fingerprint, port, key, connection, proxyServer, and secure (as applicable). Error: Session.connect: java.io.IOException: invalid data.com.jcraft.jsch.JSchException: Session.connect: java.io.IOException: invalid dataat com.jcraft.jsch.Session.connect(Unknown Source)at com.jcraft.jsch.Session.connect(Unknown Source)at coldfusion.tagext.net.SftpHandler.getConnection(SftpHandler.java:265)at coldfusion.tagext.net.SftpHandler.createConnection(SftpHandler.java:76)at coldfusion.tagext.net.FtpTag.doStartTag(FtpTag.java:675)at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2722)at cfsftp2ecfm1948882534.runPage(/Applications/ColdFusion9/wwwroot/test/sftp.cfm:7)at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:231)at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:416)at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:342)at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)at coldfusion.filter.PathFilter.invoke(PathFilter.java:87)at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46)at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:53)at coldfusion.CfmServlet.service(CfmServlet.java:200)at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42)at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)at jrun.servlet.FilterChain.service(FilterChain.java:101)at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)at jrun.servlet.http.WebService.invokeRunnable(WebService.java:172)at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3040312

External Customer Info:
External Company:  
External Customer Name: Carl Bourne
External Customer Email: 4A1F5DAB384ED3AB992001AC
External Test Config: 10/15/2009

Attachments:

Comments:

This bug has been voted..
Vote by External U.
22673 | November 11, 2011 12:40:27 AM GMT
This bug has been voted..
Vote by External U.
22674 | November 11, 2011 12:40:29 AM GMT
I get the following error when I try to establisg a secure ftp connection using CF9 <CFFTP> tag... An error occurred while establishing an sFTP connection. Verify your connection attributes: username, password, server, fingerprint, port, key, connection, proxyServer, and secure (as applicable). Error: Session.connect: java.io.IOException: invalid data. ----------------- The exact same code works fine in CF8. The code is listed below... <cfftp action="open" server="some.domain.com" port="22" secure="yes" username="aUser" password="aPassword" connection="mySFTP" timeout="30" stoponerror="yes" >
Vote by External U.
22675 | November 11, 2011 12:40:30 AM GMT
go here, the Neo Rye post, for a work-around to this bug: http://forums.adobe.com/message/3180121#3180121
Vote by External U.
22676 | November 11, 2011 12:40:31 AM GMT
any fixes??? workaround? thx
Vote by External U.
22677 | November 11, 2011 12:40:33 AM GMT