Bug #14157
closedupdating extensions fails because directories are not deleted
0%
Description
trying to update or overwrite an extension that is already installed fails.
It seems like files and directories are expected to be removed prior to getting the new version installed. While all the Files are removed fine, directories however are left in there. So the following check "nothing left in the extension directory?" prior to install fails. Due to this failure the extension doesn't get (re-)installed.
a patch that seems to fix the problem is attached.
In call to '$fileArr =t3lib_div::getAllFilesAndFoldersInPath(array(),$removePath)' it adds the parameters (...,'','1') so directories will be included as well.
the error has been in 3.6-branch for a while I believe, definitly is included in 3.6.1. bug #0000044 seems somehow related
patch works here, not heavily tested.
Warning: rmdir(/var/www/lokal/typo3/beat-ev/typo3conf/ext/rte_pb_htmlarea/htmlarea/): Directory not empty in /var/www/lokal/typo3/typo3_src-3.6.0-cvs/typo3/mod/tools/em/index.php on line 2893
Warning: rmdir(/var/www/lokal/typo3/beat-ev/typo3conf/ext/rte_pb_htmlarea/): Directory not empty in /var/www/lokal/typo3/typo3_src-3.6.0-cvs/typo3/mod/tools/em/index.php on line 2903
....
Extension copied to server
ERROR: Could not remove extension directory "/var/www/lokal/typo3/beat-ev/typo3conf/ext/rte_pb_htmlarea/". Reasons:
Error: "/var/www/lokal/typo3/beat-ev/typo3conf/ext/rte_pb_htmlarea/htmlarea/" could not be removed (are there files left?)
Error: Extension directory "/var/www/lokal/typo3/beat-ev/typo3conf/ext/rte_pb_htmlarea/" could not be removed (are there files or folders left?)
(issue imported from #M79)
Files