Style archive import may not update files atomically

  • Thread starter Thread starter Kirby
  • Start date Start date

Kirby

Guest
Member
When importing a style archive, XenForo may copy files over existing files.
This operation is not atomic and thus those files may be accessed by a client in an inconsistent state (eg. half-written).

XF\Service\Style\ArchiveImport::copyAssetFiles
Code:

Code:
if ($this->rewriteAssetPaths)
{
    File::copyFileToAbstractedPath($pathname, $dataUriPrefix . $stdPath);
}
else
{
    $newPathPrefix = \XF::getRootDirectory() . $DS;
    File::copyFile($pathname, $newPathPrefix . $stdPath);
}

While there...

Read more
Style archive import may not update files atomically

free plugins
minecraft paid for free
mcmarket
mc-market
free minecraft paid plugins
free minecraft plugins
spigotmc
SpigotMC
aac free
ewg free
Minecraft Premium Plugins
ewg free download
litebans free
epicworldgenerator free
free schematics
leaked schematics minecraft
schematics
schematics leaked
schematics free
minecraft schematics free
paid minecraft schematics free
paid minecraft schematics for free
free cracked plugins
free cracked minecraft plugins
plugins
featherboard download
featherboard plugin download
antiaura download
xenforo leaked
xenforo for free
xenforo addons
 
Top