Bug 208091 - Ark has problems with files containing [ ] inside zip archives
Summary: Ark has problems with files containing [ ] inside zip archives
Status: RESOLVED FIXED
Alias: None
Product: ark
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Harald Hvaal
URL:
Keywords:
: 236863 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-09-21 16:45 UTC by Ivo Anjo
Modified: 2010-05-08 23:08 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Example zip archive (493 bytes, application/zip)
2009-09-21 16:46 UTC, Ivo Anjo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ivo Anjo 2009-09-21 16:45:18 UTC
Version:            (using KDE 4.3.1)
OS:                Linux
Installed from:    SuSE RPMs

Ark cannot handle files with [ ] in their names, inside zip archives.
In the attached zip archive, the file [arkbug].txt cannot be extracted nor previewed.
Comment 1 Ivo Anjo 2009-09-21 16:46:47 UTC
Created attachment 37100 [details]
Example zip archive
Comment 2 Raphael Kubo da Costa 2009-09-21 16:53:07 UTC
I can confirm that and I've experienced it myself.

However, I'm not sure it's a bug in Ark. I've event sent a mail to the infozip maintainers, but besides them not being the most friendly people in the planet, my question ended up being unanswered (basically they told me "[" should always be prefixed with a "\", or something, and didn't carry on with the discussion).

I think fixing it in Ark specifically for zip files is quite hackish; I can try contacting the infozip guys again later.
Comment 3 Luiz Angelo De Luca 2009-10-19 00:20:17 UTC
This is quite an annoying bug when you deal with movies subtitles. BTW, unzip deals with this kind of files without problems.
Comment 4 Raphael Kubo da Costa 2009-10-19 00:22:53 UTC
(In reply to comment #3)
> BTW, unzip deals with this kind of files without problems.
Last time I tried, it only extracted the whole file correctly - try extracting only the file with "[" in the name.
Comment 5 Luiz Angelo De Luca 2009-10-24 22:22:10 UTC
You are right. Good luck with zip guys. I had no luck with them in the past :-)
Comment 6 Raphael Kubo da Costa 2010-05-08 18:41:51 UTC
*** Bug 236863 has been marked as a duplicate of this bug. ***
Comment 7 Raphael Kubo da Costa 2010-05-08 23:00:37 UTC
SVN commit 1124326 by rkcosta:

Escape file names in CliInterface when necessary.

The infrastructure has been added, and is used by the clizip plugin so
that it is now possible to extract and delete files which have
characters such as '[' or '*' correctly (infozip accepts some wild
characters to make our lives little bit more difficult).

CCBUG: 208091

 M  +30 -5     kerfuffle/cliinterface.cpp  
 M  +27 -0     kerfuffle/cliinterface.h  
 M  +3 -1      plugins/clizipplugin/cliplugin.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1124326
Comment 8 Raphael Kubo da Costa 2010-05-08 23:08:42 UTC
SVN commit 1124327 by rkcosta:

Backport r1124326.

Escape file names in CliInterface when necessary.

The infrastructure has been added, and is used by the clizip plugin so
that it is now possible to extract and delete files which have
characters such as '[' or '*' correctly (infozip accepts some wild
characters to make our lives little bit more difficult).

BUG: 208091


 M  +30 -5     kerfuffle/cliinterface.cpp  
 M  +27 -0     kerfuffle/cliinterface.h  
 M  +3 -1      plugins/clizipplugin/cliplugin.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1124327