Bug 141155 - zip:/ kioslave crashes konqueror when it accesses a path with "[" or "]" characters
Summary: zip:/ kioslave crashes konqueror when it accesses a path with "[" or "]" char...
Status: RESOLVED WORKSFORME
Alias: None
Product: konqueror
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-04 11:07 UTC by David Lee
Modified: 2007-03-04 12:39 UTC (History)
0 users

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 David Lee 2007-02-04 11:07:41 UTC
Version:           3.5.5 (using KDE 3.5.5, Kubuntu (edgy) 4:3.5.5-0ubuntu3)
Compiler:          Target: i486-linux-gnu
OS:                Linux (i686) release 2.6.17-10-generic

When I try to access a zip file with KDE, it crashes if the path of the file contains a "[" or "]" character. It only does this if the directories contain the characters, but not if only the file has them.

Reproduce:
access a zip file in a path /any/path/with/characters[]/file.zip.
it does NOT crash when you access /any/file/with/characters[].zip.

Expected Behavior:
file should be opened through the zip kioslave.
Comment 1 David Lee 2007-02-04 11:23:16 UTC
I think this might have something to do with konqueror escaping paths which have a protocol attached (ie: http:, ftp:, zip:). I saw that in a filename containing "]", the "]" character gets translated to "%5D" in the address bar. Perhaps this is causing trouble for the zip:/ ioslave.

Look at Bug #141157.
Comment 2 Bram Schoenmakers 2007-02-04 12:09:28 UTC
I cannot reproduce the crash. Do you have a backtrace?
Comment 3 David Lee 2007-02-04 12:16:17 UTC
Sorry, I don't have a backtrace because I'm not running a debug version of konqueror. I put the wrong address in the original report. The addresses should contain the zip:/ protocol. So the one that crashes should be:

zip:/any/path/with/characters[]/file.zip

the one that doesn't crash:

zip:/any/file/with/characters[].zip
Comment 4 Bram Schoenmakers 2007-02-04 12:29:29 UTC
I know, I tested that exactly like that with SVN 629k. No luck.
Comment 5 David Lee 2007-02-04 12:35:50 UTC
Can you check Bug #141157 and see if you get the same symptoms? I'm wondering whether it's the zip ioslave's fault, or if Konqueror's file handling got fixed.
Comment 6 David Lee 2007-02-05 07:49:02 UTC
I just updated to KDE 3.5.6, and can confirm that the bug still exists. I'm in UTF-8 locale.
Comment 7 Stefan Monov 2007-02-05 23:10:10 UTC
I can't reproduce either with KDE 3.5.6.
But bug 141167 is reproducible, I left a comment there.
Would you please install debug symbols (or compile with them) so there's something to step on? ;)
Comment 8 Bram Schoenmakers 2007-03-04 11:20:58 UTC
I double checked this report and still cannot reproduce. I was able to reproduce bug 141157 though. But I'll close this one. Please reopen if you are somehow able to produce a detailed backtrace of the crash.
Comment 9 David Lee 2007-03-04 12:39:33 UTC
I installed Gentoo and tried it there and I could not reproduce the bug either. Either it got fixed upstream during my distribution change, or it's a Ubuntu specific bug.