Bug 447563 - incorrect decompress openwrt gz file
Summary: incorrect decompress openwrt gz file
Status: REPORTED
Alias: None
Product: ark
Classification: Applications
Component: plugins (show other bugs)
Version: 21.12.0
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: Ragnar Thomsen
URL:
Keywords:
: 452147 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-12-27 07:47 UTC by bangbang93
Modified: 2023-07-18 09:53 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bangbang93 2021-12-27 07:47:52 UTC
SUMMARY
***
While decompressing openwrt img.gz, the output file is not in the same size between ark and cli.
***

file: https://downloads.openwrt.org/releases/21.02.1/targets/x86/64/openwrt-21.02.1-x86-64-generic-ext4-combined.img.gz

STEPS TO REPRODUCE
1. download openwrt gz file
2. decompress with ark
3.  decompress with cli (gzip -d -k)

OBSERVED RESULT
0b5b6eb4a6935c04b9356dc370199883bfab9ea2f9f2b45467194613cad9301a  ark.img
58e88576c4b831deae05dea114324379870c62e7f84dc0cf73e3bbc476ade642  cli.img
a1d1416bb456815ec7c4543df08f0eb81d365796042c562e40a46ab07b0d514c  openwrt-21.02.1-x86-64-generic-ext4-combined.img.gz

ark.img cannot boot normally. Guest OS will run into kernel panic.

EXPECTED RESULT
same output

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Manjaro, Plasma/5.23.4
(available in About System)
KDE Plasma Version: 5.23.4
KDE Frameworks Version: 5.88.0
Qt Version: 5.12.2

ADDITIONAL INFORMATION
Comment 1 Albert Astals Cid 2021-12-27 09:17:02 UTC
Sune, Martin, this is breaking because of the fix you did for #232843

There's some garbage at the end of the .gz file that gunzip  correctly ignores but KGzipFilter is stubborn, extracts it and ends up generating the wrong output.

Any idea how we can have both this and the other issue fixed?
Comment 2 Albert Astals Cid 2021-12-27 09:17:24 UTC
Proper link to the other bug https://bugs.kde.org/show_bug.cgi?id=232843
Comment 3 Albert Astals Cid 2022-04-02 11:20:06 UTC
*** Bug 452147 has been marked as a duplicate of this bug. ***
Comment 4 valdikss 2023-07-18 09:53:52 UTC
This is still an issue as per Ark 22.12.3