<?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>124593</bug_id>
          
          <creation_ts>2006-03-30 21:07:55 +0000</creation_ts>
          <short_desc>Connection failed or interrupt on Url Frame Redirection</short_desc>
          <delta_ts>2007-09-02 06:43:57 +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>Compiled Sources</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="lorenzo">fidojones</reporter>
          <assigned_to name="Thiago Macieira">thiago</assigned_to>
          
          
          <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>426205</commentid>
    <comment_count>0</comment_count>
    <who name="lorenzo">fidojones</who>
    <bug_when>2006-03-30 21:07:55 +0000</bug_when>
    <thetext>Version:           3.5.2 (using KDE Devel)
Installed from:    Compiled sources

If you visit a domain redirected by a FRAME konqueror always report (in all versions) an &quot;interrupted connection&quot; with a message box, and load perfect the web. Is a silly bug, and I haven&apos;t this error with others browsers.

here is the example 

http://login.esdominios.com 

&lt;frameset rows=&apos;100%, *&apos; frameborder=no framespacing=0 border=0&gt;
&lt;frame src=&quot;http://www.esdominios.com/login.php&quot; name=mainwindow frameborder=no framespacing=0 marginheight=0 marginwidth=0&gt;&lt;/frame&gt;
&lt;/frameset&gt;
&lt;noframes&gt;
&lt;h2&gt;Your browser does not support frames.  We recommend upgrading your browser.&lt;/h2&gt;&lt;br&gt;&lt;br&gt;
&lt;center&gt;Click &lt;a href=&quot;http://www.esdominios.com/login.php&quot;&gt;here&lt;/a&gt; to enter the site.&lt;/center&gt;
&lt;/noframes&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>426210</commentid>
    <comment_count>1</comment_count>
    <who name="Javier Linares">devel</who>
    <bug_when>2006-03-30 21:28:20 +0000</bug_when>
    <thetext>Same here, using konqueror 3.5.1-1 from Debian.

21:27  javier@nomada:~$ dpkg -l | grep konqueror
ii  konqueror                       3.5.1-1                     KDE&apos;s advanced file manager, web browser and document viewer
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>427396</commentid>
    <comment_count>2</comment_count>
    <who name="Thiago Macieira">thiago</who>
    <bug_when>2006-04-03 23:55:10 +0000</bug_when>
    <thetext>It&apos;s not a frame redirection. I can confirm this on KDE 3.5.2 r522440.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>544037</commentid>
    <comment_count>3</comment_count>
    <who name="Dawit Alemayehu">adawit</who>
    <bug_when>2007-09-02 06:43:57 +0000</bug_when>
    <thetext>SVN commit 707523 by adawit:

- Do not check for m_bEOF when reading chunked data. m_bEOF is set true when read returns 0, which in chunked 
  data transfer indicates end of chunked data transfer.

BUG: 124593


 M  +7 -0      http.cc  


--- branches/KDE/3.5/kdelibs/kioslave/http/http.cc #707522:707523
@@ -4125,11 +4125,16 @@
            return -1;
         }
      }
+
+     // m_bEOF is set to true when read called from gets returns 0. For chunked reading 0
+     // means end of chunked transfer and not error. See RFC 2615 section 3.6.1
+     #if 0
      if (m_bEOF)
      {
         kdDebug(7113) &lt;&lt; &quot;(&quot; &lt;&lt; m_pid &lt;&lt; &quot;) EOF on Chunk header&quot; &lt;&lt; endl;
         return -1;
      }
+     #endif
 
      long long trunkSize = STRTOLL(m_bufReceive.data(), 0, 16);
      if (trunkSize &lt; 0)
@@ -4163,6 +4168,8 @@
   int bytesReceived = readLimited();
   if (!m_iBytesLeft)
      m_iBytesLeft = NO_SIZE; // Don&apos;t stop, continue with next chunk
+
+  // kdDebug(7113) &lt;&lt; &quot;(&quot; &lt;&lt; m_pid &lt;&lt; &quot;) readChunked: BytesReceived=&quot; &lt;&lt; bytesReceived &lt;&lt; endl;
   return bytesReceived;
 }
 
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>