Bug #79598
closedFilenames get truncated after charcters when using export t3d with file-format XML
0%
Description
Filenames get truncated after charcters when using export t3d with file-format XML
TYPO3-Version = 7.6.15
Action:
Select a page from the pageTree -> context menu -> Export to .t3d
Export Settings:
All tables
Save files in extra folder beside the export file:...
File format = XML
Result:
The XML file gets created in the target folder (fileadmin/user_upload/temp/importexport/)
Problem:
The filenames in this xml get truncated after 40 characters.
Excerpt of the xml:
<rec index="9705" type="array"> <uid>9705</uid> <pid>423</pid> <title>Bikeservice-text-and-image-bikeguidine.j...</title> <size>929</size> <relations index="rels" type="array"> <element index="sys_file:3252" type="array"> <id>3252</id> <table>sys_file</table> </element> </relations> <softrefs type="array"></softrefs> </rec>
Responsible Code part
../typo3/sysext/impext/Classes/Export.php
... public function export_addRecord($table, $row, $relationLevel = 0) { // ... // line 318: $headerInfo['title'] = GeneralUtility::fixed_lgd_cs(BackendUtility::getRecordTitle($table, $row), 40); // ... } ...
Question/Request
Is this a bug or is there a good reason for truncating the filename after 40 characters?
Updated by Benjamin Eyring about 7 years ago
- Subject changed from Filenames get trancated after charcters when using export t3d with file-format XML to Filenames get truncated after charcters when using export t3d with file-format XML
Updated by Philipp Gampe about 7 years ago
- Status changed from New to Needs Feedback
This is just the title for the export, used to show a preview of what is going to be imported. The actual filenames should be in an array at the end of the file in a <files_fal ...>
tag.
It can be that the exported silently fails on broken relations, e.g. if a file is removed or renamed, but still referenced inside a record to be exported.
Updated by Benjamin Eyring about 7 years ago
My fault! Due to wrong settings ('Use static relations for tables:' must not be selected) for export the FAL-files weren't exported. With the right settings the files are exported correctly and the filename in the identifier object is set correct.
Issue can be closed.
Updated by Philipp Gampe about 7 years ago
- Status changed from Needs Feedback to Closed