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 / CF2016U12,CF2018U5
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:
- March 05, 2018 00:00:00: ?.txt
Comments: