Task #36528
File: Rework property update process
| Status: | Accepted | Start date: | 2012-04-24 | |
|---|---|---|---|---|
| Priority: | Should have | Due date: | ||
| Assignee: | Andreas Wolf | % Done: | 0% |
|
| Category: | - | |||
| Target version: | 6.0 beta 2 | |||
| Votes: | 0 |
Description
The updateProperties() method of t3lib_file_File currently does some strange stuff. We should refactor the whole method to get better results from it.
There are two main use cases we need to consider for updating file properties:
- the file has been moved/renamed (= the identifier has changed) and we want the file object to reflect this
- additional information about the file has been fetched from the storage or by some service; this info should be added to the object
The object has to keep track of the updated properties to ease updating the index record (if present).
We have to check within the updateProperties() method if the file is indexed, to trigger an update of the index record afterwards.
Related issues
| related to File Abstraction Layer - Bug #34351: Uncaught Exception on renamin a folder with subfolder | Accepted | 2012-02-27 |
History
Updated by Steffen Ritter 9 months ago
- Target version changed from 6.0 beta1 to 6.0 beta 2