cffile makeunique filename isn't synchronised

Description

I think there’s a tiny chance under load that makeunique might conflict, if multiple users upload the same filename at the same time, as I think there’s no locking between generating a unique filename and actually writing out to the new unique filename. both could end up with the same destination filename. I guess one of the requests would then fail at createNewFile…

https://github.com/lucee/Lucee/blob/5.3/core/src/main/java/lucee/runtime/tag/FileTag.java#L963

Environment

None

Assignee

Unassigned

Reporter

Zac Spitzer

Priority

New

Labels

None

Fix versions

None

Affects versions

Configure