tracker issue : CF-4172645

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

Using hyphens in cfftp connection name causes unexpected results

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Jason Townsend / Jason Townsend (Jason Townsend)

Created: 07/14/2016

Components: Net Protocols, FTP

Versions: 10.0

Failure Type:

Found In Build/Fixed In Build: CF11_Final /

Priority/Frequency: Minor / All users will encounter

Locale/System: English / Linux

Vote Count: 0

Listed in the version 2016.0.03.300466 Issues Fixed doc
Problem Description: Putting a hyphen into a connection name using cfftp action="listDir" (I am doing so in cfscript specifically) causes the query variable that should be returned to not exist. Example:

cfftp(action="listDir", attributeCollection=ftpSettings, name="myfiles");
return myfiles;

The above will throw the error that myfiles does not exist.

Steps to Reproduce: Insert a hyphen character into the connection name of a cfftp listDir call, then reference the named query variable.

Actual Result: Named query variable does not exist.

Expected Result: If hyphens are not allowed, an error saying so. Or, the variable should exist.

Any Workarounds: Don't use a hyphen

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

Watson Bug ID:	4172645

External Customer Info:
External Company:  
External Customer Name: Jason Townsend
External Customer Email:  
External Test Config: My Hardware and Environment details: Dell R610 running CentOS 7.1, using openJDK 1.8 JRE instead of the built in CF one.

Attachments:

Comments:

The fix made will now throw the exception pointing out the valid characters to use, if connection name includes a hyphen. The fix will be available in the upcoming updates. Thanks!
Comment by S P.
2190 | August 08, 2016 06:36:31 AM GMT