Bug 434540 - Ark cannot open single files that have been compressed with zstd
Summary: Ark cannot open single files that have been compressed with zstd
Status: RESOLVED FIXED
Alias: None
Product: ark
Classification: Applications
Component: plugins (show other bugs)
Version: 20.12.2
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: Friedrich W. H. Kossebau
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-17 11:50 UTC by alan.n.davies
Modified: 2021-07-10 19:54 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description alan.n.davies 2021-03-17 11:50:56 UTC
SUMMARY

Ark can correctly handle .tar.zst files, but is unable to open single files that have been compressed with zstd

STEPS TO REPRODUCE
1. echo hello > text.txt
2. zstd test.txt
3. ark test.txt.zst

OBSERVED RESULT
Ark reports the following error...

Loading the archive ‘/home/alan/MLP-OSE/OGOLD.txt.zst’ failed with the following error:
No suitable plugin found. Ark does not seem to support this file type.

EXPECTED RESULT
Ark should open the file, like it does for single files that have been compressed with gzip.

SOFTWARE/OS VERSIONS
Operating System: Debian GNU/Linux 11 (bullseye/testing)
KDE Plasma Version: 5.20.5
KDE Frameworks Version: 5.78.0
Qt Version: 5.15.2
Comment 1 Justin Zobel 2021-03-17 21:49:04 UTC
Confirmed on:
Operating System: Solus 4.2
KDE Plasma Version: 5.21.2
KDE Frameworks Version: 5.79.0
Qt Version: 5.15.2

zstd 1.4.8
Comment 2 2wxsy58236r3 2021-03-18 04:12:54 UTC
I guess karchive needs to implement support for zstd first, so that Ark's libsinglefileplugin can use it.

Perhaps you can file a feature request for frameworks-karchive?
Comment 3 alan.n.davies 2021-03-18 11:34:02 UTC
https://bugs.kde.org/show_bug.cgi?id=434577
Comment 4 Elvis Angelaccio 2021-03-21 18:00:59 UTC
(In reply to 2wxsy58236r3 from comment #2)
> I guess karchive needs to implement support for zstd first, so that Ark's
> libsinglefileplugin can use it.
> 

Correct.
Comment 5 Albert Astals Cid 2021-04-10 09:08:48 UTC
I've done the karchive part.

Elvis will you do the ark part?
Comment 6 Bug Janitor Service 2021-06-23 09:14:27 UTC
A possibly relevant merge request was started @ https://invent.kde.org/utilities/ark/-/merge_requests/53
Comment 7 2wxsy58236r3 2021-07-09 02:34:31 UTC
MR53 has been abandoned and the updated one is MR59:
https://invent.kde.org/utilities/ark/-/merge_requests/59
Comment 8 Elvis Angelaccio 2021-07-10 19:54:29 UTC
Git commit 9540de6fdaacf227917b7256684feb4f6d0a2ad1 by Elvis Angelaccio, on behalf of Friedrich W. H. Kossebau.
Committed on 10/07/2021 at 19:53.
Pushed by elvisangelaccio into branch 'release/21.08'.

Add support for single files compressed with zstd

M  +30   -0    plugins/libsinglefileplugin/CMakeLists.txt
A  +12   -0    plugins/libsinglefileplugin/kerfuffle_libzstd.json.cmake
A  +46   -0    plugins/libsinglefileplugin/zstdplugin.cpp     [License: BSD]
A  +40   -0    plugins/libsinglefileplugin/zstdplugin.h     [License: BSD]

https://invent.kde.org/utilities/ark/commit/9540de6fdaacf227917b7256684feb4f6d0a2ad1