Bug 190205 - ark displays wrong values for the compressed size of files in a zip file
Summary: ark displays wrong values for the compressed size of files in a zip file
Status: RESOLVED DUPLICATE of bug 167018
Alias: None
Product: ark
Classification: Applications
Component: general (show other bugs)
Version: 2.12
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Harald Hvaal
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-20 20:31 UTC by Christian Trippe
Modified: 2009-05-10 06:22 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
screenshot of ark showing strange compressed size of files (69.20 KB, image/png)
2009-04-20 20:32 UTC, Christian Trippe
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Trippe 2009-04-20 20:31:10 UTC
Version:           2.12 (using 4.2.2 (KDE 4.2.2) "release 114", KDE:KDE4:Factory:Desktop / openSUSE_11.1)
Compiler:          gcc
OS:                Linux (i686) release 2.6.27.21-0.1-default

When creating a zip archive the compressed size is displayed wrongly (e.g. 4.0 GiB for a 22 MiB file) in ark.
I will attach a screenshot.
Comment 1 Christian Trippe 2009-04-20 20:32:06 UTC
Created attachment 32965 [details]
screenshot of ark showing strange compressed size of files
Comment 2 Raphael Kubo da Costa 2009-04-20 20:35:37 UTC
Thanks for the report. Does it only happen to this file? Is there any smaller file that you can attach that exhibits this same behaviour?
Comment 3 Christian Trippe 2009-04-20 20:43:46 UTC
(In reply to comment #2)
> Thanks for the report. Does it only happen to this file? Is there any smaller
> file that you can attach that exhibits this same behaviour?

I just tried it again. The compressed size is always displayed as 4,0 GiB independent of the file you compress. (I have tried it with the attached png-file.) But this is displayed wrong only when you create the zip-file.
As soon as you close it and open it again reasonable values are displayed.

So attaching a zip-archive does not help. I hope you can reproduce it. Thanks for the quick response!
Comment 4 Raphael Kubo da Costa 2009-04-20 20:51:18 UTC
Ah, I see. I could reproduce it here too. This may be a bug in libzip, from which we might move away in 4.3 or 4.4. As soon as I have time I'll take a closer look at it.
Comment 5 Harald Hvaal 2009-05-10 06:22:31 UTC
Yes, this is a bug downstream. There is uncertainty whether libzip should be 
compiled with 32bit or 64bit size_t, and because distros do this different we 
have included a cache variable for this in CMake.

Either way, like mentioned before the libzip plugin will be deprecated for 4.3, 
so this bug should disappear completely then.

*** This bug has been marked as a duplicate of bug 167018 ***