Project

General

Profile

Actions

Bug #14610

closed

filelist: info for archives (zip/tar/tgz) is not displayed on windows platforms

Added by old_clonedyke about 19 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2005-03-15
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
3.7
PHP Version:
Tags:
Complexity:
easy
Is Regression:
No
Sprint Focus:

Description

running on any given Windows plattform, you don't get detailed info on compressed /archived files.
on unix platforms, files get scanned for their content, which is then displayed.

the corresponding code section in typo3\show_item.php has been deactivated for TYPO3_OS=WIN for some reason.

the provided patch re-activates this code section and displays the content summary for ZIP, TAR and TGZ files. the screenshot shows the output from typo3 running on a windows server.

patch works at least for 3.7.0 and higher. as on unix, you need the corresponding binaries for tar, unzip and gunzip.

greets,

rainer

(issue imported from #M888)


Files

0000888-mod-list-MS-infoview.png (2.92 KB) 0000888-mod-list-MS-infoview.png Administrator Admin, 2005-03-15 17:07
0000888-show_item.php (13.1 KB) 0000888-show_item.php Administrator Admin, 2005-03-15 17:07
0000888-show_item.php.diff (1.53 KB) 0000888-show_item.php.diff Administrator Admin, 2005-03-15 17:07
Actions #1

Updated by Michael Stucki about 19 years ago

Can anybody confirm if this patch works, please?

Actions #2

Updated by old_henk about 19 years ago

Hi stucki,

The patch works. The only thing is that you have to download the "correct" version for unzip/gunzip. It took me half an hour to find the correct versions (from sf.net). The results of the zipfile is completed with some extra stuff like date, time, EA , ACL. The size part is missing but is printed in the unzip -l -qq command, but not printed on the screen (on purpose)?!?

Regards, Henk

Actions #3

Updated by old_clonedyke about 19 years ago

hi henk!

as on unix, apart from the filename, there is no additional information printed, so this is the correct (i.e. identical) program behaviour.

necessary software: as on unix, you have to use the gnu win ports of these programs which may be downloaded from http://unxutils.sourceforge.net/ - you found that yourself.
i add this information to the "running typo3 on windows" wiki section.
hopefully, the changes are incorporated in 3.8.0-final

greets,

rainer

Actions #4

Updated by old_facorreia almost 19 years ago

Confirmed: WORKING.

Congratulations.

Test environment:
- Windows XP.
- Typo3 WAMP installer (Typo3 QuickStart Setup).
- Typo3 QuickStart 3.7.0

Filetypes tested:
TAR, Z, GZ, ZIP

Note: Don't forget to add the required programs to the Typo3 on Windows Wiki page.

Actions #5

Updated by Michael Stucki almost 19 years ago

This patch is definitely wrong. The z parameter is removed on Unix, so it cannot unpack gzipped files. Please re-check.

Actions #6

Updated by old_clonedyke almost 19 years ago

no, it is corect. the gnu ports of tar doesn't understand the -z option (gunzip on the fly), so this behaviour is achieved by piping the compressed TAR through gunzip as i wrote in the patch comment:

[...]
// As of March 2005, there is no freely available, precompiled win32
// binary of tar that supports compressed tar archives (tgz/tar.gz/tar.z).
// Therefor, we pipe gunzip to stdout and let tar read from stdin.
// The archive itself remains compressed!
exec('gunzip c '.$this>file.' | tar t ',$t);
[...]

it even has the advantage that unlike on unix systems, the archive doesn't stay uncompressed on the server.

so this patch is working.

greets

rainer

Actions #7

Updated by Karsten Dambekalns almost 19 years ago

@Rainer Sudhölter:

Yes, the archive is piped from gunzip to tar when running windows (the gnu tar for windows doesn't know "z"?! awkward!). But the tar call for other systems (Linux/Unix) misses the z argument, I think this is what was meant.

There is another thing that puzzles me: the x that is given to tar. Why isn't the archive checked with a simple "tar tvzf ..." call? "t" and "x" together looks like nonsense to me.

And you wrote:
"it even has the advantage that unlike on unix systems, the archive doesn't stay uncompressed on the server."
I don't understand that. When calling tar tvzf I never have anything left over.

Actions #8

Updated by old_clonedyke almost 19 years ago

@Karsten Dambekalns:
great, you found a typo:
the alternative for non-windows systems should read
"tar tzf ... " and not "tar txf ..."
perhaps that's why uncompressed archives were left over on my system.
i'll correct that and upload the patch again.
i also will inform the testers to re-check it.

big thanks for pointing this out!

rainer

Actions #9

Updated by Christian Kuhn over 13 years ago

Is this still valid in current versions?

Actions #10

Updated by Chris topher over 13 years ago

Checking the source code: Yes, these lines are only executed on non-Windows.

Actions #11

Updated by Helmut Hummel over 12 years ago

  • Target version deleted (0)
  • TYPO3 Version changed from 3.7.0 to 3.7
  • Complexity set to easy
Actions #12

Updated by Alexander Opitz almost 11 years ago

  • Status changed from Needs Feedback to New
Actions #13

Updated by Michael Stucki almost 11 years ago

  • Assignee deleted (Michael Stucki)

Wow, this bug is 8 (eight!) years old! Impressive! :-)

Actions #14

Updated by Sascha Egerer almost 10 years ago

  • Status changed from New to Needs Feedback
  • Is Regression set to No

Does this bug still exist in TYPO3 6 with FAL?

Actions #15

Updated by Alexander Opitz over 9 years ago

  • Status changed from Needs Feedback to Closed

No feedback within the last 90 days => closing this issue.

If you think that this is the wrong decision or experience this issue again, then please write to the mailing list typo3.teams.bugs with issue number and an explanation or open a new ticket and add a relation to this ticket number.

Actions

Also available in: Atom PDF