[TYPO3-core] FAL: why does ResourceStorage->getRootLevelFolder() return filemouts instead of real root folder?

Franz Koch typo3.RemoveForMessage at elements-net.de
Sun Oct 5 15:31:37 CEST 2014


> LOL, WTF? For renamed files you don't even get the old filename but just
> the UID of the resource as $cmdArr['data'], which ofc already is renamed
> if you grab it from the Storage. So there is no way ever to get the old
> name? You're kidding me. This hook is utterly broken.

the emitPostFileRenameSignalsignal is also broken because it also 
doesn't know about the old identifier/filename and the identifier of the 
fileobject itself already got updated to the new identifier by the 
ResourceStorage->renameFile function.

-- 
kind regards,
Franz Koch


More information about the TYPO3-team-core mailing list