Status/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): / Yuliang Ruan (Md. Kaif Akbar Quraishi)
Created: 11/21/2013
Components: Net Protocols, sFTP
Versions: 9.0.1
Failure Type:
Found In Build/Fixed In Build: 9,0,1,274733 / CF11 Update5
Priority/Frequency: Major / Some users will encounter
Locale/System: English / Win 2008 Server R2 64 bit
Vote Count: 0
Problem:
There is issue for cfftp application, where it is getting multiple feeds and doing open & putfile action for each of its feeds loop of multiple FTP server, once it processes for secureFTP server from the list of ftp server then it fails for remaining non-secureFTP servers.
Below is code snippet from client complete application, which is mainly responsible for throwing this error:-
---------
<cfloop query=”feeds”>
<cftry>
<cfset passive = "Yes">
<cfif feed.id is 13><cfset passive = "No"></cfif>
<cfftp action="OPEN" connection="ftpConn" server="#feed.ftpServer#" username="#feed.ftpLogin#" password="#feed.ftpPassword#" passive="#passive#" timeout="1200" port="#feed.ftpSecure ? 22 : 21#" secure="#feed.ftpSecure is 1#" stopOnError="yes">
<cfset isOpen = true>
<cfif len(feed.ftpDirectory) gt 0>
<cfftp action="CHANGEDIR" directory="#feed.ftpDirectory#" connection="ftpConn">
</cfif>
<cfftp action="PUTFILE" connection="ftpConn" localfile="#feedExportFilename#" remotefile="#getFileFromPath(feedExportFilename)#" timeout="1200" stopOnError=”yes”>
<cfftp action="CLOSE" connection="ftpConn" stoponerror="no">
<cfcatch>
<cfset task.logError(cfcatch)>
</cfcatch>
</cftry>
</cfloop>
---------
It couldn't be tested at our end as it needs combination of non-secure & secure FTP server whereas we have only non-secure FTP server.
Method:
1) Open action of cfftp invoked
2) Putfile action of cfftp invoked
When step 1 & 2 are repeated for multiple ftp server address including non-secure & secure FTP server.
When it completes for secure FTP server then it fails for rest of remaining FTP server.
Result:
It fails after processing secureFTP server.
Expected:
It shouldn't after processing secureFTP server and complete processing for rest FTP server.
Workaround:
Need to be identified.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3673298
External Customer Info:
External Company: PERSONALIZATIONMALL.COM
External Customer Name: Yuliang Ruan
External Customer Email:
Attachments:
Comments: