tracker issue : CF-4201409

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

Cffile upload with ? char as filename

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/Fixed

Reporter/Name(from Bugbase): Eric Esquivel / Eric Esquivel ()

Created: 03/05/2018

Components: File Management, CFFile

Versions: 2016

Failure Type: Non Functioning

Found In Build/Fixed In Build: 2016,0,05,303689 / CF14

Priority/Frequency: Normal / All users will encounter

Locale/System: ALL / Win 2008 Server R2 64 bit

Vote Count: 0

Problem Description:
Error message when uploading a file with ? into the filename using cffile upload or uploadall

Steps to Reproduce:
upload whatever file with ? into the filename using cffile upload or uploadall

Actual Result:

error message

llegal char <">
StackTrace	
java.nio.file.InvalidPathException: Illegal char <"> at index 39: d:\wwwroot\uploads\news\documents\?.txt" at sun.nio.fs.WindowsPathParser.normalize(Unknown Source) at sun.nio.fs.WindowsPathParser.parse(Unknown Source) at sun.nio.fs.WindowsPathParser.parse(Unknown Source) at sun.nio.fs.WindowsPath.parse(Unknown Source) at sun.nio.fs.WindowsFileSystem.getPath(Unknown Source) at java.io.File.toPath(Unknown Source) at coldfusion.tagext.io.FileUtils.nioCopy(FileUtils.java:1411) at coldfusion.tagext.io.FileUtils.copyFile(FileUtils.java:1396) at coldfusion.tagext.io.FileUtils.copyFile(FileUtils.java:1359) at coldfusion.tagext.io.FileUtils.copy(FileUtils.java:520) at coldfusion.tagext.io.FileUtils$2.run(FileUtils.java:890) at java.security.AccessController.doPrivileged(Native Method) at coldfusion.tagext.io.FileUtils.uploadFile(FileUtils.java:886) at coldfusion.tagext.io.FileTag.upload(FileTag.java:767) at coldfusion.tagext.io.FileTag.doStartTag(FileTag.java:340) at 
...

Expected Result:
file uploaded

Any Workarounds:
Check all utf8 encoding, check header, check IIS ...

Attachments:

  1. March 05, 2018 00:00:00: ?.txt

Comments:

is it possible to edit a bug posted ? I would like to remove the path.
Comment by Eric E.
82 | March 05, 2018 09:54:27 AM GMT
File attached name was ?.txt
Comment by Eric E.
83 | March 05, 2018 10:13:29 AM GMT