Bug 82763 - links on pages viewed from kdecache fail to open
Summary: links on pages viewed from kdecache fail to open
Status: RESOLVED WORKSFORME
Alias: None
Product: konqueror
Classification: Applications
Component: khtml (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-03 12:54 UTC by Chris Clayton
Modified: 2004-06-20 20:44 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 Chris Clayton 2004-06-03 12:54:31 UTC
Version:            (using KDE KDE 3.2.2)
Installed from:    Compiled From Sources
Compiler:          GCC 3.3.3 
OS:                Linux

If I click on a URL in a message in KMail (the URL http://www.osdl.org/newsroom/press_releases/2004/2004_05_24_beaverton.html is a good example) the page is opened in konqueror but shown as being read from a cache ( file:/var/tmp/kdecache-chris/krun/1729.0.2004_05_24_beaverton.html in my example). That's fine the page displays OK (but not as it does in Moz 1.7b or Firefox 0.8). However, if I click on a link in the left-hand column of that page (the bottom one today has the legend "OSDL Appoints Masanobu Hirano as Director of Asia"), I get the error:

An error occurred while loading file:/var/tmp/kdecache-chris/krun/2004_06_01_beaverton_tokyo.html:

The file or folder /var/tmp/kdecache-chris/krun/2004_06_01_beaverton_tokyo.html does not exist.

Moz 1.7b and Firefox 0.8 both open the correct page at OSDL
Comment 1 Lubos Lunak 2004-06-03 13:39:52 UTC
Your KDE must be misconfigured, since it downloads the page locally for konqueror, although konqueror is capable of handling remote URLs. I clicked on the URL in kmail in the mail with this bugreport, and it works fine for me. After you backup and remove your KDE configuration ( ~/.kde ), it should work for you again. If you find out it was KDE who changed your configuration that way, please reopen with more details.
Comment 2 Chris Clayton 2004-06-03 17:27:01 UTC
Yes, clicking on the URL in kmail in the mail with the bugreport would have worked fine - that's what I reported. I get the error message when when I click on any of the links on the left hand side of the page that konqueror has opened. Did you try that?
Comment 3 Lubos Lunak 2004-06-03 18:32:53 UTC
Yes I did. Clicking on the link opened normally the URL and not its copy downloaded to the kdecache location. And did you try with fresh KDE?
Comment 4 Chris Clayton 2004-06-03 20:29:49 UTC
Yes, I moved ~/.kde onto a partition I use for archiving things (mount /archive; mv ~/.kde /archive; umount /archive).

After restarting kde, clicking on URLs in kmail caused them to be opened in kwrite! So, I changed Control Centre/KDE Components/File Associations/text/html so that konqueror is top of the list. But I still have the problem. I've been doing a bit of testing myseld to see if I could get more information.

1. I mentioned in my first report that when opened through kmail, konqueror doesn't display the pages like it would if the URL had been typed into the location toolbar. The difference is that the page background is plain white (e.g. www.kde.org is displayed on a plain white background, none of the blue background is shown). Is that what I should expect?

2. The problem I am reporting occurs when:

a) I click on a URL in kmail and konqueror opens the page;
b) On that page, I click on a link that does not start with the protocol specifier (e.g. http:// or ftp://).

I've set up a page in my webspace that shows when the problem does and does not happen.  The page is http://www.theclaytons.giointernet.co.uk/index.html. For example, when I click on the 4th test link (pointing to ftp.kde.org) the page that shows up on konqueror has the following content(the rows of = are mine):

===========================================================
An error occurred while loading file:/var/tmp/kdecache-chris/krun/ftp.kde.org:


The file or folder /var/tmp/kdecache-chris/krun/ftp.kde.org does not exist.
============================================================

Clicking on the 5th link (pointing to ftp://ftp.kde.org), everything works OK.
Comment 5 Chris Clayton 2004-06-04 09:25:16 UTC
OK, I think I've figured this out. In Control Centre/Internet & Network/Web Browser/Cache, "Use cache" was not selected. Now that I have selected it (and left the policy at "Keep in Sync", everything seems to be working OK.

The behaviour I was seeing when "Use Cache" was not selected does seem very strange though. Should I report this as a separate bug?
Comment 6 Chris Clayton 2004-06-13 09:54:59 UTC
Sorry, but I'm going to have to reactivate this report. I've just built 3.2.3 and the behaviour I described on June 3 has returned. As I have reported before, if I open a page in konqueror by clicking on its URL in kmail, the page opens OK. But, if I then click on a link on the page and, in the page's HTML, the href does not start with the protocol specifier (e.g. http://) I see the error message in konqueror.

It has benn suggested that this may be due to a configuration error. I accept that but suggest that being able to configure things so that this error occurs is in itself a bug.
Comment 7 Chris Clayton 2004-06-20 20:44:36 UTC
OK, I've been ignored long enough. I give up.
However the bug is not resolved.