Bug #57565
closedCreating new sys_file_metadata record for existing sys_file record doesn't set image dimensions
0%
Description
Given the presence of a sys_file record with no related sys_file_reference_record
When I am in the metadata "Edit" dialog in the filelist module
The missing sys_file_metadata record will be autocreated
But: (at least) the fields "width" and "height" are not written, which is quite deadly for the f:image ViewHelper
While this might sound like a special case of database inconsistency, it actually seems to be the default case when upgrading from 6.0 or 6.1
Might be related to #44105 et al.
Files
Updated by Alexander Opitz over 10 years ago
"While this might sound like a special case of database inconsistency, it actually seems to be the default case when upgrading from 6.0 or 6.1"
Did you run the migration wizards? Course this shouldn't be the case if you upgrade from 6.0/6.1.
Updating TYPO3 before 6.0 had an issue, which was solved today with #46020.
The issue behind the auto creation with empty values is #57545. I would like to concentrate me on your upgrade problem in this issue.
Updated by Bernhard Schmitt over 10 years ago
Yep, I ran the migration wizards. One step stated the splitting and creation of FAL stuff, so I didn't skip on that.
Actually, the sys_file_metadata table seemed to be completely populated with records, but they were empty except for the references to sys_file
Updated by Alexander Opitz over 10 years ago
- Status changed from New to Accepted
Ok, we will take a look into this. Can you tell me, which TYPO3 version do you tried to update? And maybe some lines from the sys_file table before migration?
If we found an issue there, do you have the possibility to migrate again with fixed code?
Updated by Bernhard Schmitt over 10 years ago
- File sys_file_export.sql sys_file_export.sql added
Old version was 6.1.5
File records are attached
Migration can be re-done, no problem.
Updated by Alexander Opitz over 10 years ago
Thanks for help, hopefully I have time tomorrow to take a look. The SQL snippet seams to be correct.
Updated by Alexander Opitz over 10 years ago
Hi Bernhard,
I couldn't reproduce this issue, so I need some more information:
Dump of the SQL Structure of the sys_file before migration.
Dump of the SQL Structure of the sys_file_metadata after migration.
The FileTableSplittingUpdate wizard takes all data from sys_file and inserts them into sys_file_metadata in one SQL Statement. I don't think that there is an error, but maybe the table structure has issues.
One possibility in my mind, did you start the "Database analyzer" before migration?
Updated by Bernhard Schmitt over 10 years ago
I've tested this again with 6.2.3 including running the complete set of install tool upgrade wizards and scheduler tasks and there seem to be no further problems regarding image dimensions.
Updated by Markus Klein over 10 years ago
- Status changed from Accepted to Needs Feedback
Please test again, once 6.2.4 is released.
Updated by Markus Klein over 10 years ago
- Status changed from Needs Feedback to Closed
Correction. Closing this as it seems resolved.