If I try to list the files in an S3 directory using the built-in S3 integration in ColdFusion 9, I get an exception when any of the files contains a % (percent) character. The full error message looks like this:
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 “%ui”.”..
I think this is a ColdFusion bug caused by overzealous character escaping, but can anyone with S3 integration try it themselves to confirm? I’m literally just doing this:
<cfset var files = directoryList("s3://my.bucket.path/somefolder/")/>
It works find for “normal” files, but fails as soon as one of the files has a % in its filename.
This would appear to be a “bug” in Adobe CF9 (ACF9). If it’s not a bug, it’s certainly odd behavior as I tried the code in Railo 3.3.3.0001 (current release) and it works perfectly.
I got the same error from ACF9 as you. In addition, ACF10 has the same error. I also tried in OpenBD but was not able to read the desired folder in my bucket (it read the main bucket, its files and listed the folder but was not able to get inside the folder). However, I’ve not used OpenBD a lot so this was probably more my error than anything else.