Bug 400435 - Incorrect unzipping of ZIP files with backslash('\') in filenames
Summary: Incorrect unzipping of ZIP files with backslash('\') in filenames
Status: RESOLVED DUPLICATE of bug 176646
Alias: None
Product: ark
Classification: Applications
Component: general (show other bugs)
Version: 18.04.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Elvis Angelaccio
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-28 23:01 UTC by Shinjo Park
Modified: 2018-11-02 12:06 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Shinjo Park 2018-10-28 23:01:44 UTC
SUMMARY

When viewing/extracting ZIP files using backslash('\') characters as path delimiter, Ark fails to create folder structure and unzips all files in a single folder.

STEPS TO REPRODUCE
1. Get a ZIP file containing a filename with backslash (possibly created on Windows).
2. Open the ZIP file with Ark.
3. Extract the file using Ark directly or via Dolphin's context menu.

OBSERVED RESULT

Ark lists all files in a single folder, ignoring the backslash as path delimiter. All files are extracted in the single path.

EXPECTED RESULT

Folders should be created.

SOFTWARE VERSIONS
(available in About System)
KDE Plasma Version: 5.13.5
KDE Frameworks Version: 5.50.0
Qt Version: 5.11.1

ADDITIONAL INFORMATION

I used the ZIP file at: http://org.downloadcenter.samsung.com/downloadfile/ContentsFile.aspx?CDSite=UNI_SEC&CttFileID=5352082&CDCttType=SW&ModelType=N&ModelName=SHW-M250K&VPath=SW/201302/20130208104403376/M250K_Data_JB.zip&OriginYN=N (27.85 MiB)
Comment 1 Elvis Angelaccio 2018-11-02 12:06:23 UTC
Hi Shinjo

The ZIP specification forbids backslash characters in the path of zip entries. The outcome of the extraction depends on the zip backend used: libzip, p7zip or info-zip. I just tried and it looks like the info-zip plugin is the only one that can create the folder structure.

So as workaround you can disable the libzip and p7zip plugins from the ark settings, so that ark will use the info-zip plugin.

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