tracker issue : CF-4032599

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

Cannot putFile or getFile when using key instead of password within FTP service

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Benson Myrtil / Benson Myrtil (Benson Myrtil)

Created: 08/06/2015

Components: Net Protocols

Versions: 11.0

Failure Type:

Found In Build/Fixed In Build: CF11_Final /

Priority/Frequency: Normal / All users will encounter

Locale/System: English / Win 2008 Server R2 64 bit

Vote Count: 1

Listed in the version 2016.0.0.297996 Issues Fixed doc
Verification notes: verified_fixed on September 01, 2019 using build 2016.0.01.298513
Problem Description: 
After connecting to an ftp using a key instead of a file, I am unable to upload (putFile) to the directory. The connection is successful but I am unable to do anything else with it.

Steps to Reproduce:
1. Create an ftp service and open the connection.
2. Attempt to upload a file

var ftpService = new ftp();
ftpService.setServer( "[server]" );
ftpService.setConnection( 'bm' );
ftpService.setPort( 2022 );
ftpService.setUsername( "[username]" );
ftpService.setKey( "[direct path to private key]" );
ftpService.setsecure( 1 );	
		
var results = ftpService.open();
		
ftpService.putFile(localFile = "testing.txt", remoteFile = "testing.txt");

Actual Result:
System throws an invalid attribute error.

Messages: Attribute validation error for tag CFFTP. It has an invalid attribute combination: action,connection,key,localfile,port,remotefile,server,username. Possible combinations are:
Required attributes: 'action,localfile,password,remotefile,server,username'. Optional attributes: 'asciiextensionlist,buffersize,fingerprint,passive,port,proxybypass,proxyserver,result,retrycount,secure,stoponerror,timeout,transfermode'.
Required attributes: 'action,localfile,key,remotefile,server,username'. Optional attributes: 'asciiextensionlist,buffersize,fingerprint,passphrase,port,proxybypass,proxyserver,result,retrycount,secure,stoponerror,timeout,transfermode'.
Required attributes: 'action,connection,localfile,remotefile'. Optional attributes: 'asciiextensionlist,buffersize,fingerprint,passive,password,port,proxybypass,proxyserver,result,retrycount,secure,server,stoponerror,timeout,transfermode,username'. 

Expected Result:
File should upload to the FTP successfully

Any Workarounds:
NONE

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

Watson Bug ID:	4032599

External Customer Info:
External Company:  
External Customer Name: Benson
External Customer Email:  
External Test Config: My Hardware and Environment details:



Attempted on CF 11 upgrade 5 on a Mac and Windows Server 2008

Attachments:

Comments:

This impacts code being used in nearly 500 universities. Please fix, issue a workaround, or provide a patch.
Vote by External U.
6355 | September 02, 2015 10:15:08 AM GMT
Fix will be available in the next ColdFusion Release. Thanks!
Comment by S P.
6354 | September 29, 2015 06:14:18 AM GMT
Hi Adobe, I've verified this is fixed in CF2016 Update 1 (build 2016.0.01.298513). cfftp works properly and no longer throws "com.jcraft.jsch.JSchException: Algorithm negotiation fail" when using the fingerprint or key attributes. Thanks!, -Aaron
Comment by Aaron N.
31254 | September 01, 2019 08:15:19 AM GMT