Bug 241226

Summary: The CGI IO slave does not work
Product: [Unmaintained] kio Reporter: Christopher Yeleighton <giecrilj>
Component: cgiAssignee: Cornelius Schumacher <schumacher>
Status: RESOLVED UNMAINTAINED    
Severity: normal    
Priority: NOR    
Version First Reported In: 4.3   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Christopher Yeleighton 2010-06-09 20:25:41 UTC
Version:           4.3 (using KDE 4.3.5) 
OS:                Linux

The CGI IO slave does not provide content.

Reproducible: Always

Steps to Reproduce:
mkdir -p "$HOME/.kde4/cgi-bin"
cat <<'#EOF' >"$HOME/.kde4/cgi-bin/first.pl"
#!/usr/bin/perl -w
use strict; use warnings;
print 'Content-Type: text/plain

Hello from CGI';
#EOF
chmod +x "$HOME/.kde4/cgi-bin/first.pl"
desktop-launch 'cgi:first.pl'

Actual Results:  
desktop-launch launches kwrite that complains that it is unable to read the file.
"$HOME/.xsession-errors" has a line
> kdeinit4: preparing to launch /usr/lib64/kde4/kio_cgi.so
but except for that nothing happens.

Expected Results:  
A Konqueror window should open and display the text 'Hello from CGI'.

"$(kde4-config --path cgi)" == "$HOME/.kde4/cgi-bin/"
Comment 1 Christopher Yeleighton 2010-11-12 17:44:56 UTC
On the other hand, if you create an empty folder in your Documents folder and then execute the command

kioclient exec cgi:empty

something outrageous happens.

You get a notification that cgi:empty is being downloaded, with a progress bar that shows no progress.  The process kio_cgi gets spawned and spends 45% CPU doing nothing.

To terminate that process, cancel the task in the notification window.
Comment 2 Julian Steinmann 2018-06-24 14:10:41 UTC
There is no longer a CGI slave included in KIO, so all bugs related to this slave are now obsolete. Thanks for reporting this bug!