Skip to content

Commit

Permalink
[BUGFIX] EXT:filelist Fixed exception when the base path does not exists
Browse files Browse the repository at this point in the history
Resolves: #79785
Releases: master, 8.7
Change-Id: I50cf03273747b1fa32a1f8e4aac993a3fbc7b7f0
Reviewed-on: https://review.typo3.org/55636
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Michael Oehlhof <typo3@oehlhof.de>
Tested-by: Michael Oehlhof <typo3@oehlhof.de>
Reviewed-by: Joerg Boesche <typo3@joergboesche.de>
Reviewed-by: Susanne Moog <susanne.moog@typo3.org>
Tested-by: Susanne Moog <susanne.moog@typo3.org>
  • Loading branch information
michadu authored and susannemoog committed Feb 12, 2018
1 parent 1dde9c4 commit ea59516
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions typo3/sysext/core/Classes/Resource/ResourceStorage.php
Expand Up @@ -2869,13 +2869,22 @@ public function getProcessingFolder(File $file = null)
} else {
if ($this->driver->folderExists($processingFolder) === false) {
$rootFolder = $this->getRootLevelFolder(false);
$currentEvaluatePermissions = $this->evaluatePermissions;
$this->evaluatePermissions = false;
$this->processingFolder = $this->createFolder(
$processingFolder,
$rootFolder
);
$this->evaluatePermissions = $currentEvaluatePermissions;
try {
$currentEvaluatePermissions = $this->evaluatePermissions;
$this->evaluatePermissions = false;
$this->processingFolder = $this->createFolder(
$processingFolder,
$rootFolder
);
$this->evaluatePermissions = $currentEvaluatePermissions;
} catch (\InvalidArgumentException $e) {
$this->processingFolder = GeneralUtility::makeInstance(
InaccessibleFolder::class,
$this,
$processingFolder,
$processingFolder
);
}
} else {
$data = $this->driver->getFolderInfoByIdentifier($processingFolder);
$this->processingFolder = $this->getResourceFactoryInstance()->createFolderObject($this, $data['identifier'], $data['name']);
Expand Down

0 comments on commit ea59516

Please sign in to comment.