Bug 231151

Summary: ark: previewer doesn't differenciate a/test.png and b/test.png
Product: [Applications] ark Reporter: Eckhart Wörner <ewoerner>
Component: generalAssignee: Harald Hvaal <metellius>
Status: RESOLVED FIXED    
Severity: normal CC: rakuco
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Debian testing   
OS: Unspecified   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Example file which shows the problem

Description Eckhart Wörner 2010-03-17 21:40:53 UTC
Version:            (using KDE 4.4.1)
Installed from:    Debian testing/unstable Packages

This bug has been copied over from http://bugs.debian.org/cgi-bin/bugreport.cgi?bug= and has been verified to still exist in KDE SC 4.4.1

----

when opening an archive with png files aaa/file.png and
bbb/file.png, if after previewing aaa/file.png, i
preview bbb/file.png, then it shows me aaa/file.png

also, previewing bbb/file.png first will show me bbb/file.png
when previewing aaa/file.png

it seems to be specific to image previewing. it also fails with .jpg
but not with .txt.


step to reproduce :
mkdir a
mkdir b
import a/file.png # or whatever
import b/file.png # you want
zip test.zip a/file.png b/file.png
ark test.zip
click a/file.png : it shows a/file.png
click b/file.png : it shows a/file.png instead of b/file.png
Comment 1 Eckhart Wörner 2010-03-17 21:41:58 UTC
Created attachment 41720 [details]
Example file which shows the problem
Comment 2 Eckhart Wörner 2010-03-17 21:43:18 UTC
Corresponding Debian bug report is http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=533071
Comment 3 Raphael Kubo da Costa 2010-05-09 02:19:41 UTC
SVN commit 1124369 by rkcosta:

Preserve paths when extracting for preview.

This prevents files with same names but different paths in the archive
from ending up being interpreted as the same by caches implemented by
some KParts, for example.

CCBUG: 231151

 M  +8 -5      part.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1124369
Comment 4 Raphael Kubo da Costa 2010-05-09 02:25:24 UTC
SVN commit 1124370 by rkcosta:

Backport r1124369.

Preserve paths when extracting for preview.

This prevents files with same names but different paths in the archive
from ending up being interpreted as the same by caches implemented by
some KParts, for example.

BUG: 231151


 M  +8 -5      part.cpp  


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