Bug #62273

It isn't possible to use a newly created local ResourceStorage

Added by Jacob Rasmussen about 5 years ago. Updated 7 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
-
Start date:
2014-10-16
Due date:
% Done:

100%

TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

If you create a new ResourceStorage through the StorageRepository->createLocalStorage method and there is already other ResourceStorages registered, it isn't possible to get the ResourceStorage object from either the StorageRepository->FindByUid or ResourceFactory->getStorageObject method.

This is due to caches not being updated after the new ResourceStorage record have inserted into the database.

I guess the best solution would be to have a signal to indicate when the storage cache should be updated, probably both in StorageRepository and ResourceFactory.


Related issues

Related to TYPO3 Core - Bug #86689: [BUGFIX][FAL] Update local cache upon creation of new storage object Closed 2018-10-18

Associated revisions

Revision 5715465d (diff)
Added by Bernhard Kraft about 1 year ago

[BUGFIX] Update local cache upon creation of new storage object

When a new storage object for the "local" driver is being created
it is not possible to retrieve the new object instantaneous. The
objects are being cached in a local static variable which needs
to get flushed (set to "null") first.

Resolves: #86689
Resolves: #62273
Releases: master
Change-Id: Ib5a0d6b148ef7b503c26ccd1610519707a8fa86d
Reviewed-on: https://review.typo3.org/56058
Reviewed-by: Benni Mack <>
Tested-by: Benni Mack <>
Tested-by: TYPO3com <>
Reviewed-by: Wouter Wolters <>
Tested-by: Wouter Wolters <>

History

#1 Updated by Frans Saris almost 5 years ago

  • Tracker changed from Bug to Feature

#2 Updated by Bernhard Kraft over 1 year ago

  • Tracker changed from Feature to Bug
  • TYPO3 Version set to 9

#3 Updated by Gerrit Code Review over 1 year ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/56058

#4 Updated by Gerrit Code Review over 1 year ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/56058

#5 Updated by Bernhard Kraft about 1 year ago

  • Related to Bug #86689: [BUGFIX][FAL] Update local cache upon creation of new storage object added

#6 Updated by Gerrit Code Review about 1 year ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/56058

#7 Updated by Bernhard Kraft about 1 year ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

#8 Updated by Benni Mack 7 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF