Bug#813324: konqueror: Does not reload when HTTP redirected to same page.
Package: konqueror
Version: 4:4.14.2-1
Severity: normal
Dear Maintainer,
Konqueror does not follow/load/show a HTTP redirect to the exact same URL.
The attached minimal example shows the erroneous behaviour:
1. Open the URL 'test-konq-post-redirect-self.php?id=1'
2. Use the submit button to POST to the same page. This creates a temp file
(simplified example of e.g. updating a database) and then redirects to
the same location to prevent accidental re-POSTing.
3. Observe that the page displays "not posted".
4. Reload the page and it now shows "posted". Thus, the post was made, but
the page contents only updated on a reload, not immediately.
At least iceweasel gives the expected behaviour to display "posted" already
at point 3.
Jaap
-- System Information:
Debian Release: 8.3
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.3.0-0.bpo.1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages konqueror depends on:
ii install-info 5.2.0.dfsg.1-6
ii kde-baseapps-bin 4:4.14.2-1
ii kde-baseapps-data 4:4.14.2-1
ii kde-runtime 4:4.14.2-2
ii libc6 2.19-18+deb8u2
ii libkactivities6 4:4.13.3-1
ii libkcmutils4 4:4.14.2-5
ii libkde3support4 4:4.14.2-5
ii libkdecore5 4:4.14.2-5
ii libkdesu5 4:4.14.2-5
ii libkdeui5 4:4.14.2-5
ii libkfile4 4:4.14.2-5
ii libkhtml5 4:4.14.2-5
ii libkio5 4:4.14.2-5
ii libkonq5abi1 4:4.14.2-1
ii libkonqsidebarplugin4a 4:4.14.2-1
ii libkparts4 4:4.14.2-5
ii libqt4-dbus 4:4.8.6+git64-g5dc8b2b+dfsg-3+deb8u1
ii libqt4-qt3support 4:4.8.6+git64-g5dc8b2b+dfsg-3+deb8u1
ii libqt4-xml 4:4.8.6+git64-g5dc8b2b+dfsg-3+deb8u1
ii libqtcore4 4:4.8.6+git64-g5dc8b2b+dfsg-3+deb8u1
ii libqtgui4 4:4.8.6+git64-g5dc8b2b+dfsg-3+deb8u1
ii libstdc++6 4.9.2-10
ii libx11-6 2:1.6.2-3
Versions of packages konqueror recommends:
ii dolphin 4:4.14.2-1
ii kfind 4:4.14.2-1
ii konqueror-nsplugins 4:4.14.2-1
ii kpart-webkit 1.3.4-2
Versions of packages konqueror suggests:
ii konq-plugins 4:4.14.2-1
-- no debconf information
<?php
$id = @$_REQUEST['id'];
if ( isset($_POST['id']) ) {
touch('/tmp/konq-posted');
header('Location: ' . $_SERVER['PHP_SELF'] . "?id=$id");
exit;
}
?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>konq POST reload test</title>
</head>
<body>
<p><?php
if ( file_exists('/tmp/konq-posted') ) {
unlink('/tmp/konq-posted');
echo "posted";
} else {
echo "not posted";
}
?></p>
<form action="<?php $_SERVER['PHP_SELF'] ?>" method="post">
<input type="hidden" name="id" value="<?php echo $id; ?>" />
<input type="submit" name="submit" value="submit" />
</form>
</body>
</html>
Reply to: