<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>123121</bug_id>
          
          <creation_ts>2006-03-05 14:38:26 +0000</creation_ts>
          <short_desc>Konqueror sends (some) HTTP requests twice (seems related to ALT-F2 -&gt; URL)</short_desc>
          <delta_ts>2011-04-18 03:20:21 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>Unmaintained</classification>
          <product>kio</product>
          <component>http</component>
          <version>unspecified</version>
          <rep_platform>Ubuntu</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Daniel Hahler">kde-bugzilla</reporter>
          <assigned_to name="Unassigned bugs">unassigned-bugs-null</assigned_to>
          <cc>nicolasg</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>419438</commentid>
    <comment_count>0</comment_count>
    <who name="Daniel Hahler">kde-bugzilla</who>
    <bug_when>2006-03-05 14:38:26 +0000</bug_when>
    <thetext>Version:            (using KDE KDE 3.5.1)
Installed from:    Ubuntu Packages

I experience the same problem as with bug #62209:

When I request a php page it gets requested twice by Konqueror!

First, I&apos;ve thought it would be related to using a proxy (local Privoxy 3.0.3-5 from ubuntu/debian), but it happens now also without it (and Firefox has no such problems through it).

Then I&apos;ve thought it would be related to an &quot;Expires&quot; header, because with a direct connection (without proxy) it did not happen anymore, but I could force it somehow to happen again.

At least, I can say that it seems to be related to opening the URL through ALT-F2, but also from a link in KMail for example.

I&apos;ve experienced this issue also with a link out of Konqueror, where it annoyed extremely, because I was generating some test image, which Konqueror requested twice also and caused the image to be different from what the according debug output said.


To reproduce it, a PHP script like this might work:
&lt;?php
/**
 * When accessing an URL through ALT-F2 it gets requested twice(!) - at least
 * that&apos;s the most reproducable way..
 */

#header(&apos;Expires: Mon, 06 Mar 2006 05:00:00 GMT&apos;);
#       header(&apos;Last-Modified: &apos;.gmdate(&apos;D, d M Y H:i:s&apos;).&apos; GMT&apos;);
#       header(&apos;Cache-Control: no-cache, must-revalidate&apos;);
#       header(&apos;Pragma: no-cache&apos;);


$fh = fopen( &apos;/tmp/test.tmp&apos;, &apos;a&apos; );
fwrite( $fh, time().&quot;\n&quot; );
fclose($fh);
?&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>419732</commentid>
    <comment_count>1</comment_count>
    <who name="Thiago Macieira">thiago</who>
    <bug_when>2006-03-06 15:10:39 +0000</bug_when>
    <thetext>Yes, it is accessed twice.

Are you sure that the page specified caching?

Didn&apos;t we have a mandatory caching of 60 seconds?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>419763</commentid>
    <comment_count>2</comment_count>
    <who name="Nicolas Goutte">nicolasg</who>
    <bug_when>2006-03-06 16:56:47 +0000</bug_when>
    <thetext>To quote freely David Faure, the caching is done by KHTML, not by the HTTP KIO slave. (See the thread on the kde-core-devel mailing list, not so long ago.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>419767</commentid>
    <comment_count>3</comment_count>
    <who name="Maksim Orlovich">maksim</who>
    <bug_when>2006-03-06 17:20:00 +0000</bug_when>
    <thetext>That&apos;s clearly a misquote, David wouldn&apos;t be so wrong. Actually, there is caching in both.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>419770</commentid>
    <comment_count>4</comment_count>
    <who name="Nicolas Goutte">nicolasg</who>
    <bug_when>2006-03-06 17:24:43 +0000</bug_when>
    <thetext>On Monday 06 March 2006 16:56, Nicolas Goutte wrote:
(...)
&gt; ------- To quote freely David Faure, the caching is done by KHTML, not by
&gt; the HTTP KIO slave. (See the thread on the kde-core-devel mailing list, not
&gt; so long ago.)


I have found the thread again.

Unfortunately my quote was a little too freely. David only told that caching 
was only done when everything was downloaded.

The answer of David that I meant is here:
http://lists.kde.org/?l=kde-core-devel&amp;m=113576813232302&amp;w=2

The whole thread is here:
http://lists.kde.org/?t=113555713500001&amp;r=1&amp;w=2

Have a nice day!
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>419772</commentid>
    <comment_count>5</comment_count>
    <who name="Maksim Orlovich">maksim</who>
    <bug_when>2006-03-06 17:29:02 +0000</bug_when>
    <thetext>Note that the Alt-F2 path should work by placing slave on hold, and transferring it to konq, AFAIK. But may be I should shut up since I am not the one who will be doing the fixing, and the relevant people know this stuff better than me anyway
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>486717</commentid>
    <comment_count>6</comment_count>
    <who name="Daniel Hahler">kde-bugzilla</who>
    <bug_when>2006-11-14 19:59:58 +0000</bug_when>
    <thetext>Changing to NEW, as it&apos;s confirmed also by others.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1068210</commentid>
    <comment_count>7</comment_count>
    <who name="Dawit Alemayehu">adawit</who>
    <bug_when>2011-01-05 00:56:32 +0000</bug_when>
    <thetext>SVN commit 1211792 by adawit:

- Fixed KIO::SchedulerPrivate::heldSlaveFor to correctly reuse ioslaves that are on hold.
  See http://svn.reviewboard.kde.org/r/6271/ for details.

BUG:148307
BUG:123121


 M  +14 -3     scheduler.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&amp;revision=1211792</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1109079</commentid>
    <comment_count>8</comment_count>
    <who name="Dawit Alemayehu">adawit</who>
    <bug_when>2011-04-18 03:20:21 +0000</bug_when>
    <thetext>Git commit 5c65f468d016961e7e0bf877e56d475bc302f552 by Dawit Alemayehu.
Committed on 18/04/2011 at 03:23.
Pushed by adawit into branch &apos;KDE/4.6&apos;.

Mostly revert the changes I made with commit d27c820581673040e80c46087b34b76e9fc9ed79.

I completely misunderstood the main concept behind put slave on hold. With the exception
of corner-case that can only be solved at the application level, putting slaves on hold
should work correctly once this partial revert is commited.

CCBUG:123121
CCBUG:148307
REVIEW:6271

M  +7    -11   kio/kio/scheduler.cpp     

http://commits.kde.org/kdelibs/5c65f468d016961e7e0bf877e56d475bc302f552</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>