I have a quick tip: I had a problem where non image files were locked by tomcat (for a long time) when uploading them to the server. Now I found out it most likely due to a piece of code where I used imageNew and then isImage to get image info to the front-end. This was being called for every file, so also non image files. Currently I added a piece where it uses the extension to check if it’s an image and now it’s not being locked anymore. Still I would say Lucee shouldn’t lock these files like this.
OS: Windows Server 2012 R2 (6.3) 64bit
Java Version: 11.0.6 (AdoptOpenJDK) 64bit
Tomcat Version: Apache Tomcat/9.0.31
Lucee Version: Lucee 22.214.171.124
Can you please mention your image extension version?
Also can you please make check this with the related ticket fixed image extension version 126.96.36.199-SNAPSHOT ([LDEV-3931] - Lucee)
We use the “188.8.131.52-SNAPSHOT” version of image extension.
Could you please try this with any of the latest image extension versions in 1.0.0 or 1.2.0?
By quick checking, I can confirm the file lock issue was not occurs with imageNew() in the above ticket fixed versions.
I first removed my image extension check and the problem was still there. I then updated to “184.108.40.206-SNAPSHOT” and did some test again and that also seems to work. So yes updating to the newest version also fixes the lock issue, thanks for helping!