Solved Race condition in XF\Util\File::createTempDir

This topic has been solved
X

Xon

Guest
The XF\Util\File::createTempDir function has a race condition where the same directory can be attempted to be created multiple times if enough requests happen at once.

This causes createDirectory to throw as it fails to create the directory, resulting in unexpected errors, so at least this doesn't cause anonymous data conflicts.

Continue reading...