<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18702"></HEAD>
<BODY>
<BLOCKQUOTE
style="BORDER-LEFT: #0000ff 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
<DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>From:</B> rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com] <B>On Behalf Of </B>BJ
Blanchard<BR><B>Sent:</B> Friday, June 12, 2009 12:00 PM<BR><B>To:</B>
rt-users@lists.bestpractical.com<BR><B>Subject:</B> [rt-users] KDE/Konqueror,
RT attachments, and OpenOffice<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV>I've come across an interesting problem which is not specific to RT, but
is related to viewing certain attachments in RT via the Konqueror browser -
thought I would share my experience here to save others the pain.
Specifically I think its a bug in Konqueror and I'll be posting as a bug in
bugs.kde.org as well.<BR><BR>A few of my users were complaining about RT being
slow - and after some testing I found that firefox was the issue - and
switching them to konqueror (3.5.10) made a huge difference - its very fast by
comparison.<BR><BR>But with konqueror - Ticket attachments for OpenOffice
documents (odt, ods, doc, xls, etc) wouldn't open. Specifically
OpenOffice would generate this message: "Error reading data from the
Internet. Server error message: 503 Service Unavailable."<BR><BR>After
alot of digging, I found that the problem lies in the Exec line in the system
".desktop" files.<BR><BR>OpenOffice can handle URLs, so the Exec line is
defined under (k)ubuntu in ooo-writer.desktop as:<BR><BR>Exec=ooffice -writer
%U<BR><BR>Konqueror uses kioexec for downloading, which follows the
conventions defined here: <A
href="http://standards.freedesktop.org/desktop-entry-spec/latest/ar01s06.html">http://standards.freedesktop.org/desktop-entry-spec/latest/ar01s06.html</A>
, and thus launches OpenOffice with the http URL of the link to the
attachment. Because there are no authentication credentials, OO cannot
access the URL thus the 503 error.<BR><BR>Changing the desktop entry to use
"%f" instead of "%U" fixes the problem - the file gets saved to a temp
directory and OpenOffice launches with a local document - which is how firefox
behaves.<BR><BR>But this breaks things like sftp:// urls because it downloads
the file - even though OpenOffice can handle sftp urls properly.<BR><BR>So
konqueror, being both a file browser and a web browser, has adopted a common
approach to URL handling which doesn't work in the real world (of
authenticated web sessions).<BR><BR>-Bob <SPAN
class=477355216-15062009><FONT color=#0000ff
face=Arial> </FONT></SPAN></DIV>
<DIV><SPAN class=477355216-15062009></SPAN> </DIV></BLOCKQUOTE>
<DIV><SPAN class=477355216-15062009><SPAN class=477355216-15062009><FONT
color=#0000ff face=Arial>The 3.5 tree of KDE is no longer being actively
maintained. Can you please run these tests on a system running KDE 4.3 beta 2?
This would help make sure that the issue is still present and needs dealt with.
Also, please file it under KIO in KDE's bugzilla.</FONT></SPAN></DIV>
<DIV>
<DIV><FONT color=#0000ff face=Arial></FONT> </DIV>
<DIV><SPAN class=477355216-15062009><FONT color=#0000ff face=Arial>/me takes his
KDE developer hat off now....</FONT></SPAN></DIV><!-- Converted from text/plain format -->
<P><FONT size=2>--<BR>Gary L. Greene, Jr.<BR>IT Operations<BR>Minerva Networks,
Inc.<BR>Cell: (650) 704-6633<BR>Phone: (408) 240-1239<BR></FONT></P>
<DIV><FONT color=#0000ff face=Arial></FONT> </DIV><FONT color=#0000ff
face=Arial></FONT> </SPAN></DIV></BODY></HTML>