Bug 281917 - Cannot copy a file from one zip archive to another
Summary: Cannot copy a file from one zip archive to another
Status: CONFIRMED
Alias: None
Product: krusader
Classification: Applications
Component: krarc (show other bugs)
Version: 2.7.0
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Krusader Bugs Distribution List
URL:
Keywords: reproducible, triaged
Depends on:
Blocks:
 
Reported: 2011-09-13 07:00 UTC by Petr Kočandrle
Modified: 2018-06-29 06:25 UTC (History)
6 users (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 Petr Kočandrle 2011-09-13 07:00:54 UTC
Version:           2.4.0 (using KDE 4.6.5) 
OS:                Linux

When I try to copy a file from one zip archive to another a progress appears but nothing happens and I have to cancel it. Copying a file from an archive to a folder and then from the folder to another archive works fine.

Reproducible: Always

Steps to Reproduce:
1. Go into a zip archive in left pane
2. Go into a zip archive in right pane
3. Select some files to copy in one archive
4. Try to copy them by F5 and confirm

Actual Results:  
Progress appears but nothing happens

Expected Results:  
I'd like to have a copy of selected files in the second archive ;-)
Comment 1 Petr Kočandrle 2012-07-29 20:44:18 UTC
The same problem is with 7zip archives.
Comment 2 Jekyll Wu 2012-11-07 13:26:52 UTC
reproduciable using 2.4.0-beta3
Comment 3 Jan Lepper 2013-02-27 13:17:36 UTC
Can't reproduce on  2.4.0-beta3 with krarc write support enabled.
With write support disabled, an info message about krarc being disabled appears.
Comment 4 Petr Kočandrle 2013-02-27 21:07:46 UTC
Strange. I'm watching the copy progress dialog forever until I cancel it and nothing happens. Could this be a fedora packaging problem?
Comment 5 Jan Lepper 2013-02-27 21:49:26 UTC
On Wed, 27 Feb 2013 21:07:46 +0000
Petr Kočandrle <petr.kocandrle@gmail.com> wrote:

> https://bugs.kde.org/show_bug.cgi?id=281917
> 
> --- Comment #4 from Petr Kočandrle <petr.kocandrle@gmail.com> ---
> Strange. I'm watching the copy progress dialog forever until I cancel
> it and nothing happens. Could this be a fedora packaging problem?
> 

Not sure, which version of zip do you have installed ?
Comment 6 Petr Kočandrle 2013-02-28 11:11:06 UTC
I have installed zip-3.0 and unzip-6.0. But since it is the same with 7zip archives as I wrote in comment 1, I wouldn't suspect zip package. The 7zip verzion is 9.20.1.
Comment 7 Jan Lepper 2013-03-03 21:12:09 UTC
You might want to take a look at krarc's debug output on a terminal.
For that you need to make sure that kio_krarc is enabled in kdebugdialog, and export KDE_FORK_SLAVES=true.
Comment 8 Petr Kočandrle 2013-03-03 22:29:31 UTC
I enabled only the kio_krarc and it showed only this:

kio_krarc(18396) kio_krarcProtocol::stat: "/tmp/test1.zip"
kio_krarc(18396) kio_krarcProtocol::initArcParameters: arcType:  "zip"
kio_krarc(18396) kio_krarcProtocol::getPassword: false
kio_krarc(18396) kio_krarcProtocol::initDirDict: "/tmp/test1.zip/"
kio_krarc(18396) kio_krarcProtocol::stat: "/tmp/test2.zip/test2.pdf"
kio_krarc(18396) kio_krarcProtocol::initArcParameters: arcType:  "zip"
kio_krarc(18396) kio_krarcProtocol::getPassword: false
kio_krarc(18396) kio_krarcProtocol::initDirDict: "/tmp/test2.zip/test2.pdf"
kio_krarc(18396) kio_krarcProtocol::initArcParameters: arcType:  "zip"
kio_krarc(18396) kio_krarcProtocol::getPassword: false
kio_krarc(18396) kio_krarcProtocol::checkStatus: 0
kio_krarc(18396) kio_krarcProtocol::initDirDict: "/tmp/test2.zip/test2.pdf"
kio_krarc(18396) kio_krarcProtocol::copy: "/tmp/test2.zip/test2.pdf"
kio_krarc(18396) kio_krarcProtocol::put: "/tmp/test1.zip/test2.pdf"
kio_krarc(18396) kio_krarcProtocol::initArcParameters: arcType:  "zip"
kio_krarc(18396) kio_krarcProtocol::getPassword: false
kio_krarc(18396) kio_krarcProtocol::initDirDict: "/tmp/test1.zip/test2.pdf"
kio_krarc(18396) kio_krarcProtocol::initArcParameters: arcType:  "zip"
kio_krarc(18396) kio_krarcProtocol::getPassword: false
kio_krarc(18396) kio_krarcProtocol::checkStatus: 0
kio_krarc(18396) kio_krarcProtocol::initDirDict: "/tmp/test1.zip/test2.pdf"
kio_krarc(18396) kio_krarcProtocol::initDirDict: "/tmp/test1.zip/test2.pdf"

When I canceled the progress and exited krusader, there was a crash (or two):

kioslave: ####### CRASH ###### protocol = kio_krarc pid = 18601 signal = 11
peko@kocandrle-ntb ~$ kio_krarc(18577) kio_krarcProtocol::checkStatus: 0
kio_krarc(18577) kio_krarcProtocol::initDirDict: "/tmp/test1.zip/test2.pdf"
kio_krarc(18577) kio_krarcProtocol::initArcParameters: arcType:  "zip"
kio_krarc(18577) kio_krarcProtocol::getPassword: false
kio_krarc(18577) kio_krarcProtocol::checkStatus: 0
kioslave: ####### CRASH ###### protocol = kio_krarc pid = 18577 signal = 11

When I ran krusader once again there was test2.pdf empty file in test1.zip. The content wasn't zipped...
Comment 9 Jan Lepper 2013-03-04 09:48:08 UTC
Unfortunately the output doesn't give any hints.
I'm going to add more debug output to krarc ...
Comment 10 Jan Lepper 2013-03-17 09:12:55 UTC
(In reply to comment #9)
> Unfortunately the output doesn't give any hints.
> I'm going to add more debug output to krarc ...

Done: http://quickgit.kde.org/?p=krusader.git&a=commit&h=5fb2b5846433d2b5dfdc6b99603c2d3702781ee9

Please re-run the test with this.
Comment 11 Jan Lepper 2013-03-17 09:18:22 UTC
(In reply to comment #10)
> (In reply to comment #9)
> > Unfortunately the output doesn't give any hints.
> > I'm going to add more debug output to krarc ...
> 
> Done:
> http://quickgit.kde.org/?p=krusader.
> git&a=commit&h=5fb2b5846433d2b5dfdc6b99603c2d3702781ee9
> 
> Please re-run the test with this.

I removed removed a possibly wrong abort() again :
http://quickgit.kde.org/?p=krusader.git&a=commit&h=34bb8905b582693b79e8620afefbf31993504a21
Comment 12 Petr Kočandrle 2013-03-22 07:44:04 UTC
Is there a way to get a fedora package with this commit or do I have to compile it manually?
Comment 13 David P. 2013-04-17 15:36:04 UTC
It happens also to me with the single step beta 3 version.
Comment 14 David P. 2013-04-17 15:36:52 UTC
I forgot to mention that it happens when copying files from one zip archive to another one.
Comment 15 Petr Kočandrle 2013-08-06 08:44:27 UTC
OK, another try with the last version in Fedora 19 (2.4.0-0.9.beta3.fc19):

krusader(13684)/kio (Scheduler) KIO::SchedulerPrivate::doJob: KIO::SimpleJob(0x2463070)
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x200010f
kio_krarc(13748) kio_krarcProtocol::stat: "/home/petr/temp/test.zip"
kio_krarc(13748) kio_krarcProtocol::initArcParameters: arcType:  "zip"
kio_krarc(13748) kio_krarcProtocol::getPassword: false
kio_krarc(13748) kio_krarcProtocol::initDirDict: "/home/petr/temp/test.zip/"
krusader(13684)/kio (Scheduler) KIO::SchedulerPrivate::jobFinished: KIO::StatJob(0x2463070) KIO::Slave(0x27c0c80)
krusader(13684)/kio (Scheduler) KIO::SchedulerPrivate::doJob: KIO::SimpleJob(0x2656a50)
kio_krarc(13748) kio_krarcProtocol::stat: "/home/petr/temp/wl_apsta.o.zip/wl_apsta.o"
kio_krarc(13748) kio_krarcProtocol::initArcParameters: arcType:  "zip"
kio_krarc(13748) kio_krarcProtocol::getPassword: false
kio_krarc(13748) kio_krarcProtocol::initDirDict: "/home/petr/temp/wl_apsta.o.zip/wl_apsta.o"
kio_krarc(13748) kio_krarcProtocol::initArcParameters: arcType:  "zip"
kio_krarc(13748) kio_krarcProtocol::getPassword: false
kio_krarc(13748) kio_krarcProtocol::checkStatus: 0
kio_krarc(13748) kio_krarcProtocol::initDirDict: "/home/petr/temp/wl_apsta.o.zip/wl_apsta.o"
krusader(13684)/kio (Scheduler) KIO::SchedulerPrivate::jobFinished: KIO::StatJob(0x2656a50) KIO::Slave(0x27c0c80)
krusader(13684)/kio (KIOJob) KIO::CopyJobPrivate::statCurrentSrc: Stating finished. To copy: 13231072 , available: 18446744073709551615
krusader(13684)/kio (Scheduler) KIO::SchedulerPrivate::doJob: KIO::SimpleJob(0x2286f80)
kio_krarc(13748) kio_krarcProtocol::copy: "/home/petr/temp/wl_apsta.o.zip/wl_apsta.o"
krusader(13684)/kio (KIOJob) KIO::SlaveInterface::dispatch: error  108   "Protokol kio_krarc nepodporuje kopírování souborů."
krusader(13684)/kio (Scheduler) KIO::SchedulerPrivate::jobFinished: KIO::DirectCopyJob(0x2286f80) KIO::Slave(0x27c0c80)
krusader(13684)/kio (Scheduler) KIO::SchedulerPrivate::doJob: KIO::SimpleJob(0x2463070)
kio_krarc(13748) kio_krarcProtocol::put: "/home/petr/temp/test.zip/wl_apsta.o"
kio_krarc(13748) kio_krarcProtocol::initArcParameters: arcType:  "zip"
kio_krarc(13748) kio_krarcProtocol::getPassword: false
kio_krarc(13748) kio_krarcProtocol::initDirDict: "/home/petr/temp/test.zip/wl_apsta.o"
kio_krarc(13748) kio_krarcProtocol::initArcParameters: arcType:  "zip"
kio_krarc(13748) kio_krarcProtocol::getPassword: false
kio_krarc(13748) kio_krarcProtocol::checkStatus: 0
kio_krarc(13748) kio_krarcProtocol::initDirDict: "/home/petr/temp/test.zip/wl_apsta.o"
kio_krarc(13748) kio_krarcProtocol::initDirDict: "/home/petr/temp/test.zip/wl_apsta.o"
kio_krarc(13748)/kio (kioslave) KIO::SlaveBase::canResume: offset= "0"
krusader(13684)/kio (Scheduler) KIO::SchedulerPrivate::doJob: KIO::SimpleJob(0x26b1c30)

I've tried to copy wl_apsta.o from /home/petr/temp/wl_apsta.o.zip to /home/petr/temp/test.zip.
Comment 16 David P. 2013-08-06 09:10:45 UTC
I would like to test it also with KUbuntu 13.04.
Do I have to compile it?
I would prefer of course a binary package, because I know that compiling is not easy.
Comment 17 Emil 2014-08-18 12:37:46 UTC
I still have this bug on Ubuntu 14.04. with package version 2.4.0~beta3-2 (amd64)
Comment 18 Emil 2014-08-18 12:41:55 UTC
Forgot to mention that my KDE version is 4.13.3
Comment 19 Davide Gianforte 2016-12-26 10:47:44 UTC
Still present in 2.5.0. Atm, Krarc can't copy files from krarc:/ to krarc:/.
Comment 20 Nikita Melnichenko 2018-06-29 06:25:11 UTC
Confirmed on v2.7.0.