Bug #85798
closedWrong mapping in domain model for table table sys_filemounts
0%
Description
The domain model of table sys_filemounts is not consistent to its table.
Particularly the database field 'base' is mapped to domain model property 'isAbsolutePath'. This is not the correct representation of the field's content.
The field 'base' stores the associated 'sys_file_storage' in which the filemount is defined. Hence the domain model should return an integer (or even better: fileStorage model) and not a value of type bool. Furthemore the domain model's property 'isAbsolutePath' should be renamed to something like 'base' or 'storage'.
The related files are (TYPO3 V8.7.18):- typo3/sysext/extbase/ext_typoscript_setup.typoscript (line: 20)
- typo3/sysext/extbase/Classes/Domain/Model/FileMount.php (lines: 58 / 132-135 / 142-145)
Files
Updated by Ingo Reuter over 6 years ago
- File ext_typoscript_setup.patched.txt ext_typoscript_setup.patched.txt added
- File FileMount.patched.php FileMount.patched.php added
A possible patch is attached.
Updated by Ingo Reuter over 6 years ago
- Category changed from Extbase to File Abstraction Layer (FAL)
- Tags set to FAL, Extbase, Domain Model
Updated by Susanne Moog over 5 years ago
Hey,
thanks for the report. Would you mind creating a patch on our review system? More info/how-to at https://docs.typo3.org/typo3cms/ContributionWorkflowGuide/Index.html
Updated by Georg Ringer over 4 years ago
- Status changed from New to Closed
Thanks for creating the issue. In fact with #90686 I would like to deprecate this model as there is absolutly no reason to have that as extbase model. If you really really need that in such way, please create an own model and register that.