Issue Bug Closed

#79598Filenames get truncated after charcters when using export t3d with file-format XML

Benjamin Eyring 02/02/17, 11:28 updated 02/03/17, 15:04

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?

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.