Bug 442414 - Ark can't recognize archive with special name
Summary: Ark can't recognize archive with special name
Status: CONFIRMED
Alias: None
Product: ark
Classification: Applications
Component: general (other bugs)
Version First Reported In: 21.08.1
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Elvis Angelaccio
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-14 06:32 UTC by rdp65536
Modified: 2021-09-14 13:34 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rdp65536 2021-09-14 06:32:05 UTC
SUMMARY
Compressing a folder which name is end with two or more dots causes Ark cannot recognize correctly when decompressing it.

STEPS TO REPRODUCE
1. create a folder which name is "a..."
2. create a text file in that folder (if it is an empty folder then the problem wont happens)
3. compress the folder into tar with Ark
4. double click the a...tar, open with Ark
5. Ark shows the compressed file is broken (error msg: Could not load the archive because it contains ill-formed entries and might be a malicious archive.)

OBSERVED RESULT
1. The tar archive was not broken actually, using command "tar -xf a...tar" in command line decompress the archive successfully, without error.
2. If the folder name was ending with one dot, like "a.", then ark can work normally. Error occurs when there are more than two dots. 
3. zip, 7z and tar format all have the same problem
4. The archive should named as "a....tar" (four dots), but it is "a...tar" (three dots). I don't know if this is the reason.

EXPECTED RESULT
Ark should recognize the archive normally and be able to decompress it.

SOFTWARE/OS VERSIONS
Operating System: KDE neon 5.22
KDE Plasma Version: 5.22.5
KDE Frameworks Version: 5.85.0
Qt Version: 5.15.3
Kernel Version: 5.11.0-34-generic (64-bit)
Graphics Platform: X11
Comment 1 Paul Worrall 2021-09-14 13:34:38 UTC
Reproduced

Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.22.80
KDE Frameworks Version: 5.86.0
Qt Version: 5.15.3
Kernel Version: 5.11.0-27-generic (64-bit)
Graphics Platform: Wayland
Processors: 2 × AMD A6-6400K APU with Radeon(tm) HD Graphics
Memory: 7.7 GiB of RAM
Graphics Processor: AMD CEDAR