Bug 465989

Summary: Extracting a file from .xz archive to partition with insufficient disk space silently drops data
Product: [Applications] ark Reporter: bugs-kde-account
Component: generalAssignee: Elvis Angelaccio <elvis.angelaccio>
Status: RESOLVED DUPLICATE    
Severity: normal CC: aacid, nicolas.fella, rthomsen6
Priority: NOR    
Version: 19.12.3   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description bugs-kde-account 2023-02-18 10:58:14 UTC
SUMMARY

Extracting a large file did not fail despite not all data being extracted. Used applications were Dolphin and Ark. Extraction was of a file in an *.xz archive; Ark reported the extracted file size as unknown. The file was extracted from an archive on an ext4 partition to that same partition.

STEPS TO REPRODUCE
1. get a large enough *.xz archive, e.g. https://downloads.raspberrypi.org/raspios_lite_arm64/images/raspios_lite_arm64-2022-09-26/2022-09-22-raspios-bullseye-arm64-lite.img.xz (uncompressed size for that particular file should be 2 009 071 616 bytes)
2. open the archive with Ark, e.g. double-click in Dolphin
3. (observe the free space on the target partition (according to Dolphin))
4. extract the compressed file, e.g. by drag-and-drop to Dolphin, to a partition with insufficient space

OBSERVED RESULT

The file will grow only up to the free space on the partition, then no more. After some additional time (presumably complete decompression), the file is reported as completely extracted.

EXPECTED RESULT

The extraction should be reported as failed due to insufficient disk space.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.18.8
KDE Frameworks Version: 5.68.0
Qt Version: 5.12.8
Comment 1 Nicolas Fella 2023-02-18 11:53:16 UTC
Fixed in Ark 22.08

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