Bug 53788 - khelpcenter displays PNG images (all images?) as text (hex dump)
Summary: khelpcenter displays PNG images (all images?) as text (hex dump)
Status: RESOLVED FIXED
Alias: None
Product: khelpcenter
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Cornelius Schumacher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-01 00:13 UTC by Jens
Modified: 2003-04-14 21:11 UTC (History)
0 users

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 Jens 2003-02-01 00:13:56 UTC
Version:           3.1 (using KDE 3.1.9)
Compiler:          gcc version 3.2.2 20030124 (Debian prerelease)
OS:          Linux (i686) release 2.4.19-jb-preempt-w4l

In the KMail help page there is a link to the Aegypten project (remote I suppose, a web page) which is being displayed inline in khelpcenter. In this page there are screenshots of KDE which are PNG images.

e.g. kmail.kde.org/kmail-pgpmime-howto.html

When you click on the screenshot links the PNG raw data is being displayed in khelpcenter, instead of the image being rendered.

This is obviously not a feature :-)


Thanks,

Jens
Comment 1 Lauri Watts 2003-02-18 02:42:22 UTC
I don't see any displaying of images as text, but I certainly see some really serious re-layouting 
problems, similar to bug 48140  
 
There's something really weird going on with KHC and external links, perhaps the answer is to 
simply open them in Konqueror (as suggested in bug 53162 ) 
 
Could you check please if you're still seeing this png-as-text problem?  And can you view the 
same page in Konqueror correctly? 
Comment 2 Lauri Watts 2003-04-14 14:52:35 UTC
No reply for some time, and nobody could reproduce. I think this was some isolated 
weirdness on the reporters system. 
 
Closing, please reopen if you can indeed reproduce it. 
Comment 3 Jens 2003-04-14 16:18:55 UTC
Sorry, I'll have to reopen. It still happens with CVS crom April 8th.  
I'll give you a concrete example: 
 
- Call kmail help page. 
- Go to the configuration (chapter 4) / Security / OpenPGP page. 
- At the bottom click on "
Comment 4 Cornelius Schumacher 2003-04-14 16:27:58 UTC
Confirmed. This is due to the incomplete MIME type handling in KHelpcenter. It doesn't detect 
the pngs as non-HTML and feeds it to the KHTML view. 
 
Comment 5 Jens 2003-04-14 16:33:00 UTC
Subject: Re:  khelpcenter displays PNG images (all images?) as text (hex dump)

On Mon, Apr 14, 2003 at 02:27:59PM -0000, Cornelius Schumacher wrote:

> Confirmed. This is due to the incomplete MIME type handling in
> KHelpcenter. It doesn't detect the pngs as non-HTML and feeds it to
> the KHTML view.

Then how about just spawning Kinqueror on external links? Then you have
a whole browser to use and don't miss bookmarks etc. as well.


Comment 6 Datschge 2003-04-14 19:06:57 UTC
Imho KHelpcenter should always spawn an external application when accessing an 
external resource and even tell the user that it will do so. It can't be in our interest that 
the difference between (secure) local help file and (unsecure) external data of any kind 
is hidden from the user. 
Comment 7 Lauri Watts 2003-04-14 21:11:36 UTC
Avoid the problem entirely by opening http url's in Konqueror 
Comment 8 Jens 2003-04-15 01:57:39 UTC
Subject: Re:  khelpcenter displays PNG images (all images?) as text (hex dump)

On Mon, Apr 14, 2003 at 07:11:37PM -0000, Lauri Watts wrote:

> Avoid the problem entirely by opening http url's in Konqueror

What about avoiding the problem by opening *all* non-file:/ URLs in
Konqueror? Sooner or later somebody will use ftp, sftp or fish URLs in
the help center, and we'll have the same basic problem.


Comment 9 Cornelius Schumacher 2003-04-15 02:20:26 UTC
Subject: Re:  khelpcenter displays PNG images (all images?) as text (hex dump)

It's not a problem of the protocol, but of the mime type of the file. An 
HTML file on an FTP server can perfectly be shown in KHelpcenter, but a 
PNG can't, even locally.