Patch for CFImage and Image functions in ColdFusion 8.0.1
Issue
CFImage and the image functions can leave an image file locked after an initial write to disk in Adobe ColdFusion 8.0.1. This can cause subsequent operations on the image to fail with an error similar to the following:
"An exception occurred while trying to write the image. Ensure that the destination directory exists and that ColdFusion has permission to write to the given path or file. Cause: java.io.FileNotFoundException: /pathToImage/portrait.jpg"
The CFimage function may also write the image to the directory ColdFusion is running from instead of the proper directory.
Solution
Both ColdFusion 8.0.1 cumulative and individual hot fixes are installed in the ColdFusion Administrator. The installation process is the same for all platforms and installation choices.
Install the ColdFusion 8.0.1 hot fix.
- Download the hot fix, hf801-71557.zip (110k).
- Extract hf801-71557.jar and metadata-extractor-2.3.1.jar from the hf801-71557.zip file.
- Open the ColdFusion Administrator and select the System Information page. Next to the Update File field, do one of the following:
- Type in the file path to hf801-71557.jar, and then click Submit.
- Click Browse, and then browse to the hf801-71557.jar. Select the file, and then click Submit.
- Stop the ColdFusion server.
- Rename metadata-extractor-2.3.1.jar in cf_root\lib to metadata-extractor-2.3.1.jar.bak. Copy metadata-extractor-2.3.1.jar extracted from the hotfix zip to this location.
- Restart the ColdFusion server.
This content requires Flash
To view this content, JavaScript must be enabled, and you need the latest version of the Adobe Flash Player.
Download the free Flash Player now!
