Bug #66340

Processed files for storage 0 do not get updated when the original file changes

Added by Nils Blattner over 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Could have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
-
Start date:
2015-04-09
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
easy
Is Regression:
No
Sprint Focus:

Description

Hi there

When files in storage 0 (possibly other storages aswell) get changed on the file system, the processed file does not get updated with the new data.
This is quite a common case (FTP, other sync from external systems) and can be solved quite easily.

  • Make TYPO3\CMS\Core\Resource\ProcessedFileRepository->createDomainObject() recognize when a processed file has changed (preferably filemtime vs tstamp of sys_file_processedfile)
  • Make TYPO3\CMS\Core\Resource\ProcessedFileRepository->findOneByOriginalFileAndTaskTypeAndConfiguration() include the change time of the original file (again preferably filemtime) in the configurationsha1 (and of course in ProcessedFile for storing)

What would be the preferred way?

Most simple use case:
  1. Have an <f:image fluid tag that shrinks a given File-object
  2. Replace the underlying file via FTP

Kind regards
Nils


Related issues

Related to TYPO3 Core - Task #64196: Make it possible to re index files from storage 0Rejected2015-01-08

Actions

Also available in: Atom PDF