Bug #39785
closedFAL: Various bugs when creating the local storage
100%
Description
t3lib_file_repository_storagerepository::findAll()
contains this code:
if (count($storageObjects) === 0) { $this->createLocalStorage( 'fileadmin/ (auto-created)', $GLOBALS['TYPO3_CONF_VARS']['BE']['fileadminDir'], 'relative', 'This is the local fileadmin/ directory. This storage mount has been created automatically by TYPO3.' ); $storageObjects = self::findAll(); }
In the unit test createNewFileInLocalStorage
this ends up in an endless loop.
Updated by Benni Mack about 12 years ago
- Subject changed from Endless loop in t3lib_file_repository_storagerepository to FAL: Various bugs when creating the local storage
Thanks for the hint. This brought me to think about the "auto-creation" mechanism for this. We only should execute this call if there has never been records in this table before. Sometimes, (because of the enable fields) there are no results as well. Thus the check is put BEFORE the SQL call and only executed once. No loop.
I also renamed the issue to reflect the changes.
Thus: * No loops anymore * Never auto-create an automount just because there are no other records.
Updated by Gerrit Code Review about 12 years ago
- Status changed from New to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/15451
Updated by Gerrit Code Review about 12 years ago
Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/15451
Updated by Gerrit Code Review about 12 years ago
Patch set 3 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/15451
Updated by Benni Mack about 12 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 391e848c2f8e718120cc0e0b635f9c5f2e48dd6d.