tracker issue : CF-3203363

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

directoryList function fails when filename contains a % character

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Rupert Rawnsley / Rupert Rawnsley (Rupert Rawnsley)

Created: 06/01/2012

Components: File Management, VFS-S3

Versions: 10.0

Failure Type: Non Functioning

Found In Build/Fixed In Build: 9.0.1 /

Priority/Frequency: Major / Few users will encounter

Locale/System: English / Win 2003 Server

Vote Count: 0

Problem Description: directoryList function fails when filename contains a % character

Steps to Reproduce: Add a file called %test.txt to an S3 folder then call directoryList on that folder

Actual Result: An exception is thrown with the text... An error occurred when performing a file operation listFiles on file /activities/18057/files.The cause of this exception was: org.apache.commons.vfs.FileSystemException: Unknown message with code "Invalid URI escape sequence "%te".".. 

Expected Result: An array containing all the files

Any Workarounds: No

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

Watson Bug ID:	3203363

External Customer Info:
External Company:  
External Customer Name: Rupert Rawnsley
External Customer Email:  
External Test Config: My Hardware and Environment details: ColdFusion co-hosted on IIS

Attachments:

Comments:

Independently confirmed on versions 9 and 10: http://stackoverflow.com/questions/10830823/coldfusion-s3-directorylist-throws-this-error-an-error-occurred-when-performing
Comment by External U.
19133 | June 01, 2012 01:52:29 AM GMT
Tried with "%" sign in file name located on disk and was not able to repro this issue. But when tried with file located on S3, I could repro this case.
Comment by Akhila K.
19134 | December 17, 2013 11:33:01 PM GMT
The bug is fixed , directoryList function lists the filename with % character but the % character is encoded as %25 . So, %tests.txt would be seen as %25tests.txt. We will fix this in the next update and also logging a bug that would allow to create a file that has "%" in the filename. Bug no:CF-3829498
Comment by Suchika S.
19135 | September 22, 2014 05:47:09 AM GMT