Bug 169473 - KFind does not work with KIO modules due wrong call to "get"
Summary: KFind does not work with KIO modules due wrong call to "get"
Status: RESOLVED FIXED
Alias: None
Product: kio
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-20 10:11 UTC by Rajko Albrecht
Modified: 2008-12-19 17:46 UTC (History)
1 user (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 Rajko Albrecht 2008-08-20 10:11:43 UTC
Version:            (using KDE 4.1.0)
Compiler:          cc-Version 4.3.0 20080428 (Red Hat 4.3.0-8)  
OS:                Linux
Installed from:    Fedora RPMs

When using kfind from within KIO eg. hitting ctrl-f inside dolphin when in sftp:// or smb:// or ksvn:// or whatever KIO protocols it fails due a call to KIO::get.

It seems to be a KIO problem 'cause:

1. open a terminal
2. call "kfind sftp://<host>/<path>"

seems to work (eg. found something on kio-based path)

but when calling it like dolphin/konqueror does:

"/usr/libexec/kde4/kioexec kfind sftp://<host>/<path>"

an error appers after showing a download bar "<target> is a folder but file expected" or similiar.

I think KIO tries to download it like it would do for kate or gwenview or whatever works with a files but with kfile it makes no sense - KIO should check if target is a folder and descide what to do.

yours
Comment 1 Dario Andres 2008-12-19 17:07:03 UTC
I can't reproduce this bug using:

Qt: 4.4.3
KDE: 4.1.85 (KDE 4.1.85 (KDE 4.2 Beta2))
kdelibs svn rev. 898705 / kdebase svn rev. 898705
on ArchLinux x86_64 - Kernel 2.6.27.8

While in Dolphin browsing a ftp site, pressing CTRL+F opens KFind inmmediatly with the "Look in" field set to the ftp site.

I can't find the kioexec binary in my KDE4 installation (only in the KDE3 installation)
Comment 2 David Faure 2008-12-19 17:43:43 UTC
I've fixed this in 897114. Let me backport this to 4.1.x branch.

Ctrl+F when in trash:/ (or any other remote protocol) said "malformed url" because KRun tried to download to a temp file via kioexec. %u tells it not to do that.

Darío: kioexec is in lib/kde4/libexec/kioexec, which is not in $PATH. But it shouldn't be used in this case of course.
Comment 3 David Faure 2008-12-19 17:46:29 UTC
SVN commit 899045 by dfaure:

Backport fix for launching kfind on remote directories (r897114)
BUG: 169473


 M  +1 -1      dolphinviewactionhandler.cpp  


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