https://bugs.kde.org/show_bug.cgi?id=476196
Bug ID: 476196
Summary: Ark fails to parse 7z archive if it was created with
attributes omitted ('-mtr=off')
Classification: Applications
Product: ark
Version: 23.08.1
Platform: Archlinux
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: plugins
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Target Milestone: ---
SUMMARY
Ark fails to parse 7z archive if it was created with attributes omitted
('-mtr=off').
STEPS TO REPRODUCE
1. Create a 7z archive, containing directories, with '-mtr=off' flag.
2. Open the archive in Ark.
OBSERVED RESULT
Ark fails to parse the archive properly.
EXPECTED RESULT
Ark should parse the archive properly.
SOFTWARE/OS VERSIONS
Ark 23.08.2
ADDITIONAL INFORMATION
This is because Ark relies on 'D' attribute to detect directories inside 7z
archives.
https://invent.kde.org/utilities/ark/-/blob/8c7e0a2117fc6db538b3df33b19e9b910f07c160/plugins/cli7zplugin/cliplugin.cpp#L259
Usually archive records look like this:
Path = test
Size = 0
Packed Size = 0
Modified = 2023-10-28 12:52:18.4874650
Attributes = D drwxr-xr-x
CRC =
Encrypted = -
Method =
Block =
But when '-mtr=off' flag is used during archive creation, all attribuites are
omitted:
Path = test
Size = 0
Packed Size = 0
Modified = 2023-10-28 12:52:18.4874650
CRC =
Encrypted = -
Method =
Block =
So Ark fails to detect it as a directory.
--
You are receiving this mail because:
You are watching all bug changes.