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

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>37084</bug_id>
          
          <creation_ts>2010-04-05 06:55:56 -0700</creation_ts>
          <short_desc>[Qt] Do not cache network connections per username.</short_desc>
          <delta_ts>2012-05-18 06:53:34 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKit Qt</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Qt</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>62929</blocked>
    
    <blocked>79666</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Robert Hogan">robert</reporter>
          <assigned_to name="QtWebKit Unassigned">webkit-qt-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>kling</cc>
    
    <cc>markus</cc>
    
    <cc>ossy</cc>
    
    <cc>zarvai</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>208463</commentid>
    <comment_count>0</comment_count>
      <attachid>52532</attachid>
    <who name="Robert Hogan">robert</who>
    <bug_when>2010-04-05 06:55:56 -0700</bug_when>
    <thetext>Created attachment 52532
Qt Patch

The fix for this in Qt is tracked at: http://bugreports.qt.nokia.com/browse/QTWEBKIT-152

I&apos;ve also attached the patch here for comment.

If user information is present in the Url, QNetworkAccessHttpBackend
will cache the connection with a key in the format of user@hostname.
This causes the following tests in QtWebKit to fail:

LayoutTests/http/tests/xmlhttprequest/re-login.html
LayoutTests/http/tests/xmlhttprequest/re-login-async.html

The tests call the same url with user1 credentials, no credentials,
user 2 credentials and no credentials. In the second and fourth calls
Qt should use the most recently stored credentials. For the fourth
call it currently uses user1&apos;s credentials instead of user2&apos;s. This
is because it retrieves the cached connection from the third call
and uses the user/pass in that connection&apos;s authenticator - which is
user1&apos;s.

In order to retrieve the connection with the most recently used
credentials userinfo should be removed when caching the connection
in QNetworkAccessCache. This will allow Qt to retrieve the connection
used in the third call, in fact the same cached connection for all
four calls.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>208502</commentid>
    <comment_count>1</comment_count>
    <who name="Robert Hogan">robert</who>
    <bug_when>2010-04-05 08:55:05 -0700</bug_when>
    <thetext>I shouldn&apos;t have raised it in Jiras QTWEBKIT. The required changes are in QtNetwork, so have raised a new one:

http://bugreports.qt.nokia.com/browse/QTBUG-9619</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>302601</commentid>
    <comment_count>2</comment_count>
    <who name="Andreas Kling">kling</who>
    <bug_when>2010-11-01 04:57:51 -0700</bug_when>
    <thetext>Closing per request from mgoetz.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>302616</commentid>
    <comment_count>3</comment_count>
    <who name="Markus Goetz">markus</who>
    <bug_when>2010-11-01 05:58:12 -0700</bug_when>
    <thetext>I merged the code to Qt, thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>333905</commentid>
    <comment_count>4</comment_count>
    <who name="Robert Hogan">robert</who>
    <bug_when>2011-01-13 13:14:00 -0800</bug_when>
    <thetext>Unskip http/tests/xmlhttprequest/re-login-async.html and http/tests/xmlhttprequest/re-login.html when buildbots move to 4.8</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>498721</commentid>
    <comment_count>5</comment_count>
    <who name="Zoltan Arvai">zarvai</who>
    <bug_when>2011-11-09 01:21:29 -0800</bug_when>
    <thetext>Results with r99667 (Qt 4.8.0-rc1):
http/tests/xmlhttprequest/re-login-async.html passes
http/tests/xmlhttprequest/re-login.html still failing</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>627657</commentid>
    <comment_count>6</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2012-05-18 06:53:34 -0700</bug_when>
    <thetext>Fixed and unskipped.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>52532</attachid>
            <date>2010-04-05 06:55:56 -0700</date>
            <delta_ts>2010-06-11 10:42:54 -0700</delta_ts>
            <desc>Qt Patch</desc>
            <filename>0001-Do-not-cache-network-connections-per-username.patch</filename>
            <type>text/plain</type>
            <size>2126</size>
            <attacher name="Robert Hogan">robert</attacher>
            
              <data encoding="base64">RnJvbSBmNGI3OTg5NDllMmVjMmViODgxZDM1YWNhMDU1NGVhMDMxYzQwZmZiIE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBSb2JlcnQgSG9nYW4gPHJvYmVydEB3ZWJraXQub3JnPgpEYXRl
OiBNb24sIDUgQXByIDIwMTAgMTQ6Mzc6MDggKzAxMDAKU3ViamVjdDogW1BBVENIXSBEbyBub3Qg
Y2FjaGUgbmV0d29yayBjb25uZWN0aW9ucyBwZXIgdXNlcm5hbWUuCgpJZiB1c2VyIGluZm9ybWF0
aW9uIGlzIHByZXNlbnQgaW4gdGhlIFVybCwgUU5ldHdvcmtBY2Nlc3NIdHRwQmFja2VuZAp3aWxs
IGNhY2hlIHRoZSBjb25uZWN0aW9uIHdpdGggYSBrZXkgaW4gdGhlIGZvcm1hdCBvZiB1c2VyQGhv
c3RuYW1lLgoKVGhpcyBjYXVzZXMgdGhlIGZvbGxvd2luZyB0ZXN0cyBpbiBRdFdlYktpdCB0byBm
YWlsOgoKTGF5b3V0VGVzdHMvaHR0cC90ZXN0cy94bWxodHRwcmVxdWVzdC9yZS1sb2dpbi5odG1s
CkxheW91dFRlc3RzL2h0dHAvdGVzdH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