Bug 139193 - Konqueror Web Archiver ignores <base href="..."> element
Summary: Konqueror Web Archiver ignores <base href="..."> element
Status: RESOLVED UNMAINTAINED
Alias: None
Product: konqueror
Classification: Applications
Component: webarchiverplugin (show other bugs)
Version: 3.5.5
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Malte Starostik
URL:
Keywords:
: 158342 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-12-24 16:00 UTC by jasperschalken
Modified: 2012-06-18 17:25 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Testcase (373 bytes, application/x-tgz)
2006-12-24 16:04 UTC, Thiago Macieira
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jasperschalken 2006-12-24 16:00:05 UTC
Version:           3.5.5 release 45 (using KDE KDE 3.5.5)
Installed from:    SuSE RPMs
Compiler:          the one used by opensuse 10,2 
OS:                Linux

When archiving a web page with 'Tools > Archive Web Page...', if the document contains a <base href="..."> element defining a directory in which all external references are to be found, the Web Archiver ignores this and instead searches for them in the same directory as the archive is being saved. This leads to errors in retreiving the external references and as such results in web archives with missing images and CSS.

The Web Archiver is expected to use the <base href="..."> element as an indicator of where subsequent external references are to be found.

To reproduce this error, open a HTML file that contains the <base href="..."> element and an image (or other external reference) to be found in the indicated directory. Archive this document, and the archiver will look for the image in the same directory as the archive is being saved and return an "Error" status for that reference in the archive dialogue.
Comment 1 Thiago Macieira 2006-12-24 16:04:57 UTC
Created attachment 19027 [details]
Testcase

The following testcase shows the problem:

1. Unpack the tarball somewhere
2. Open the test.html file
   You should see a black square at the top-left
3. Archive it
   You will see the plugin complain about an error on img1.png

You can also verify that the archive contains a 0-byte img1.png file.
Comment 2 Thiago Macieira 2006-12-24 16:05:21 UTC
Confirming bug.
Comment 3 FiNeX 2010-09-05 17:41:47 UTC
*** Bug 158342 has been marked as a duplicate of this bug. ***
Comment 4 Janek Bevendorff 2012-06-18 17:25:48 UTC
Message from the Bugsquad and Konqueror teams: This bug is closed as outdated, as we do not have the manpower to maintain the KDE3 version anymore. If you still can reproduce this issue with Konqueror 4.8.4 or later, please open a new report. Thank you for your understanding.