https://bugs.kde.org/show_bug.cgi?id=523492
Bug ID: 523492
Summary: KZip fails with entry "/"
Classification: Frameworks and Libraries
Product: frameworks-karchive
Version First 6.28.0
Reported In:
Platform: Other
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Target Milestone: ---
DESCRIPTION
KZip fails to extract a ZIP file with an entry named "/".
It considers entries that "end with /" as directory, strips the "/" to get the
name. In case of "/" this results in an empty string and subsequent "Invalid
ZIP file, found empty entry name" error.
Ark opens the file just fine. I downloaded a directory from Dropbox which
resulted in a ZIP file like this, unfortunately I cannot share it.
STEPS TO REPRODUCE
1. Have a ZIP file with entry "/"
OBSERVED RESULT
"Invalid ZIP file, found empty entry name" error.
EXPECTED RESULT
File is read just fine
SOFTWARE/OS VERSIONS
Operating System (available in the Info Center app, or by running `kinfo` in a
terminal window):
KDE Plasma Version: git master as of 2026-07-22
KDE Frameworks Version:
Qt Version: 6.11.1
ADDITIONAL INFORMATION
zipinfo -v yields
Central directory entry #1:
---------------------------
/
offset of local header from start of archive: 0
(0000000000000000h) bytes
file system or operating system of origin: Unix
version of encoding software: 2.0
minimum file system compatibility required: MS-DOS, OS/2 or NT FAT
minimum software version required to extract: 2.0
compression method: none (stored)
file security status: not encrypted
extended local header: no
file last modified on (DOS date/time): 2026 Jul 12 16:13:02
file last modified on (UT extra field modtime): 2026 Jul 12 18:13:03 local
file last modified on (UT extra field modtime): 2026 Jul 12 16:13:03 UTC
32-bit CRC value (hex): 00000000
compressed size: 0 bytes
uncompressed size: 0 bytes
length of filename: 1 characters
length of extra field: 9 bytes
length of file comment: 0 characters
disk number on which file begins: disk 1
apparent file type: binary
Unix file attributes (000744 octal): ?rwxr--r--
MS-DOS file attributes (10 hex): dir
The central-directory extra field contains:
- A subfield with ID 0x5455 (universal time) and 5 data bytes.
The local extra field has UTC/GMT modification time.
There is no file comment.
--
You are receiving this mail because:
You are watching all bug changes.