tracker issue : CF-4203121

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

Scoped connection

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/Fixed

Reporter/Name(from Bugbase): Reto Aeberli / ()

Created: 07/22/2018

Components: Net Protocols, sFTP

Versions: 2018

Failure Type: Incorrect w/Workaround

Found In Build/Fixed In Build: 310739 / 312468

Priority/Frequency: Normal / All users will encounter

Locale/System: English / Win 2016

Vote Count: 0

Problem Description:
Scoped connection name is not working in Version 13, was working in 11. According to the docs [1] it must be possible to use scoped names, the docs suggest to use session or application (what doesn't work either). 

Steps to Reproduce:
<cfftp action="open" connection="variables.ftpConnection" server="ftp.server.ext" port="22" username="username" password="secret" secure="true" fingerprint="00:11:22:33" stoponerror="true">
<cfdump var="#cfftp#"> <!--- succeeded = yes --->
<cfdump var="#variables.ftpConnection#"> <!--- returns servername, port, username and timeout successfully --->
<cfftp connection="variables.ftpConnection" action="listdir" directory="/" name="qFiles">
<cfdump var="#qFiles#">

Actual Result:
The connection attribute you specified, 'variables.ftpConnection', is invalid or does not exist.

Expected Result:
a dump of files on the ftp server

Any Workarounds:
remove the scope, change variables.ftpConnection to just ftpConnection makes the code to work. 
For components it would good if we could have it in the local scope.