Project

General

Profile

Actions

Bug #20843

closed

Exporting t3x file delivers wrong data

Added by Michael Riedel almost 15 years ago. Updated about 11 years ago.

Status:
Rejected
Priority:
Could have
Assignee:
Category:
Extension Manager
Target version:
-
Start date:
2009-08-06
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.2
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Same issue as bug #M4068 which was closed without success. Please reactivate and merge with older bug #.

After saving the extension as .t3x file, I was not able to import it through extension manager on any other server. This actually is not related to the server, but due to the fact, that the extension manager for somewhat reason adds some blank characters at the beginning of the .t3x file. After removing the extra blanks, extension could be loaded without problems.

Attached .zip is the extension, and also within the .zip is a incorrectly saved .t3x file.
(issue imported from #M11661)


Files

0011661.patch (1.33 KB) 0011661.patch Administrator Admin, 2009-08-13 17:42

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #21236: Add API functions for cleaning and flushing output buffersClosedRupert Germann2009-10-11

Actions
Actions #1

Updated by Marcus Krause almost 15 years ago

Is there any reason why this issue has been set to private?

Actions #2

Updated by Michael Riedel almost 15 years ago

no, just because of the attachments. But I think you can unset the private statement.

Additional note on the bug - it seems that to somewhat reason every extension gets saved incorrectly, not only the attached one.

Actions #3

Updated by Marcus Krause almost 15 years ago

I cannot reproduce this - and I have to deal with manual export/import of extensions nearly on a daily basis.

Any special steps to do for reproducing?
OS? Up-to date libraries (aka. up-to-date system)?

Actions #4

Updated by Michael Riedel almost 15 years ago

I will try to debug myself. I have the feeling it is realted to some other extension or misconfiguration. Since this happens on my machine with every extension right now.

Actions #5

Updated by Michael Riedel almost 15 years ago

I could figure out the follwing:

in file class.em_index.php, line 2534 backup data ich echoed:
.-.-.-.-.-.-.
if (intval($this->CMD['doBackup'])==1) {
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename='.$filename);
echo $backUpData;
exit;
.-.-.-.-.-.-.

$backupData contains the correct Data without blanks at the beginning. When I save the file in Firefox or IE, 8 blanks get added. Could it be it has something to do with the header? Strange.....

Actions #6

Updated by Michael Riedel almost 15 years ago

I was able to fix it !

by adding ob_clean() before the header() functions, it removes the blanks. So when I modify the code to:
.-.-.-.-.-.-.
if (intval($this->CMD['doBackup'])==1) {
ob_clean();
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename='.$filename);
echo $backUpData;
exit;
.-.-.-.-.-.-.

Everything works great. Do you think that might make sense?

best regards
Michael

Actions #7

Updated by Oliver Hader almost 15 years ago

That makes sense. Using ob_end_clean() for all existing buffers would also be fine.
I guess that some PHP scripts that have been included before have some empty spaces/linebreaks after the closing "?>" tag...

Actions #8

Updated by Marcus Krause almost 15 years ago

As the sample extension has been removed, I hereby set the view status to public.

Actions #9

Updated by Helmut Hummel almost 13 years ago

  • Target version deleted (0)
Actions #10

Updated by Steffen Gebert over 12 years ago

  • Priority changed from Should have to Could have

Well.. that's just the usual "you have whitespaces somewhere" problem.. wouldn't be wrong to clean before sending the file, as it's a weird side effect, but such problems will also occur on other places.

Actions #11

Updated by Anja Leichsenring about 11 years ago

  • Status changed from Accepted to Rejected

Extension Manager is no longer responsible for delivering t3x files, so this issue is no longer valid.

Actions

Also available in: Atom PDF