Bug 251192

Summary: either KArchive or KZip libs have problems extracting files from zip files
Product: [Frameworks and Libraries] kdelibs Reporter: Alex Sarmiento <alex>
Component: kdecoreAssignee: kdelibs bugs <kdelibs-bugs>
Status: RESOLVED FIXED    
Severity: major CC: maarten
Priority: NOR    
Version: 4.5   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 4.5.2

Description Alex Sarmiento 2010-09-14 10:18:25 UTC
Version:           4.5 (using KDE 4.5.1) 
OS:                Linux

When an application tries to extract a zipped file it fails,  the data extracted is garbage. this is related to several bug reports about plasma desktop failing to install plasmoids. 

example:
 const KArchiveFile* epsFile=static_cast<const KArchiveFile*>(epsEntry);
            QString dir=KGlobal::dirs()->saveLocation("tmp", "cantor/");
            epsFile->copyTo(dir);

for kde 4.5.1 the resulting epsFile is garbage. not an eps file. This code worked well with kde 4.5.0, the epsFile was not garbage

Reproducible: Didn't try

Steps to Reproduce:

plasmapkg -i service-monitor-latest.zip


Actual Results:  
"KConfigIni: In file /tmp/kde-alex/plasmapkgVyqeGh/metadata.desktop, line 1: " "Invalid escape sequence "\â"." 
"KConfigIni: In file /tmp/kde-alex/plasmapkgVyqeGh/metadata.desktop, line 1: " "Invalid escape sequence "\"." 
"KConfigIni: In file /tmp/kde-alex/plasmapkgVyqeGh/metadata.desktop, line 1: " "Invalid escape sequence "\"." 
"KConfigIni: In file /tmp/kde-alex/plasmapkgVyqeGh/metadata.desktop, line 3: " "Invalid escape sequence "\ç"." 
"KConfigIni: In file /tmp/kde-alex/plasmapkgKY28ev/metadata.desktop, line 1: " "Invalid escape sequence "\â"." 
"KConfigIni: In file /tmp/kde-alex/plasmapkgKY28ev/metadata.desktop, line 1: " "Invalid escape sequence "\"." 
"KConfigIni: In file /tmp/kde-alex/plasmapkgKY28ev/metadata.desktop, line 1: " "Invalid escape sequence "\"." 
"KConfigIni: In file /tmp/kde-alex/plasmapkgKY28ev/metadata.desktop, line 3: " "Invalid escape sequence "\ç"." 
plasmapkg(17745)/libplasma Plasma::Package::installPackage: Package plugin name not specified 
,,,


OS: Linux (i686) release 2.6.32-25-generic
Compiler: gcc, g++
kubuntu 10.0.4
kde 4.5.1 from backports
Comment 1 Pino Toscano 2010-09-14 10:31:21 UTC
Fixed by David Faure.

WebSVN link: http://websvn.kde.org/?view=revision&revision=1171340
Comment 2 Christoph Feck 2010-09-23 02:09:45 UTC
*** Bug 252086 has been marked as a duplicate of this bug. ***