Project

General

Profile

Actions

Bug #14321

closed

md5 mismatch error with .t3x-files

Added by Martin Kutschker about 20 years ago. Updated over 18 years ago.

Status:
Closed
Priority:
Should have
Category:
Backend API
Target version:
-
Start date:
2004-09-17
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
3.6.2
PHP Version:
4
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

The following error occured to me several times. When I go to "backup/delete" and try to download the extension as
T3X_blah_TIMESTAMP.t3x all goes well - apparently.

But sometimes I do get an "No extension key!!! Why? - nobody knows... (Or no files in the file-array...)".

To me it seems that the downloaded files contains one spurious line feed (LF, "\n") as the very first byte in the file. This causes the import to break:

<LF><MD5>:<GZ>:<SERIALIEZD_DATA>

The simple solution is to ignore the LF. Now the md5 strings mismatch, because the string comparison fails with the LF. Remove it from the md5 within the .t3x and you're done.

Though I really would like to know WHY the LF gets transmitted in the first place. The surroundign code has only "header(...); echo $content;".
(issue imported from #M365)


Files

0000365-patch_ignws.diff (519 Bytes) 0000365-patch_ignws.diff Administrator Admin, 2004-09-19 11:54
0000365-patch_sprws.diff (736 Bytes) 0000365-patch_sprws.diff Administrator Admin, 2004-09-19 11:54
Actions

Also available in: Atom PDF