In storage-fs.phar there is a typo in the mkdir call:
function getPath($hash) {
// TODO: Make this configurable
$prefix = $hash[0];
$base = static::$base;
if ($base[0] != '/' && $base[1] != ':')
$base = ROOT_DIR . $base;
// Auto-create the subfolders
$base .= '/'.$prefix;
if (!is_dir($base))
mkdir($base, 751);
return $base.'/'.$hash;
}
the line that created the directory has an invalid octal value that is leading to the directory being created in the uploads directory with strange permissions. It should read:
mkdir($base, 0751);
IOException: Unable to read resource content
We have also noticed strange behaviour with case sensitive filesystems returning errors trying to read files with admin emails stating "IOException: Unable to read resource content".
We have noticed extra prefix directories now being created in upper and lower case in the uploads folder where they weren't before.
It might be an idea to always force a lowercase prefix directory by changing this line:
$prefix = $hash[0];
to:
$prefix = strtolower($hash[0]);
Kind regards,
Jeremy