<?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>61122</bug_id>
          
          <creation_ts>2011-05-19 06:06:41 -0700</creation_ts>
          <short_desc>[Soup] http/tests/navigation/post-307-response.html</short_desc>
          <delta_ts>2013-01-11 07:22:24 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKitGTK</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>88961</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Philippe Normand">pnormand</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>cdumez</cc>
    
    <cc>danw</cc>
    
    <cc>jussi.kukkonen</cc>
    
    <cc>luiz</cc>
    
    <cc>mrobinson</cc>
    
    <cc>svillar</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>406362</commentid>
    <comment_count>0</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2011-05-19 06:06:41 -0700</bug_when>
    <thetext>Consistently fails on the 3 GTK bots:

--- /home/slave/webkitgtk/gtk-linux-64-debug/build/layout-test-results/http/tests/navigation/post-307-response-expected.txt	2011-05-19 05:40:59.039013770 -0700
+++ /home/slave/webkitgtk/gtk-linux-64-debug/build/layout-test-results/http/tests/navigation/post-307-response-actual.txt	2011-05-19 05:40:59.039013770 -0700
@@ -1,7 +1,2 @@
-headers CONTENT_TYPE and CONTENT_LENGTH should be present.
-CONTENT_TYPE is present. Its value is: application/x-www-form-urlencoded
-CONTENT_LENGTH is present. Its value is: 15
-
-POST data should be present.
-POST data is present.
+FAIL: Timed out waiting for notifyDone to be called
 

Test added in r86693. Seems like we should clear Contents-length and Contents-type of the requests that do not have contents, like Qt does in Source/WebCore/platform/network/qt/QNetworkReplyHandler.cpp

Will skip the test for now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>406591</commentid>
    <comment_count>1</comment_count>
    <who name="Luiz Agostini">luiz</who>
    <bug_when>2011-05-19 13:02:35 -0700</bug_when>
    <thetext>In the 307 specific case the contents of the previous post request should be sent for the new url unchanged, no header should be removed.
I have seen that GTK skips the test http/tests/loading/307-after-303-after-post.html as well. It may be that both are failing due to the same reason.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>625093</commentid>
    <comment_count>2</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2012-05-16 00:46:34 -0700</bug_when>
    <thetext>Same issue on EFL port.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>740757</commentid>
    <comment_count>3</comment_count>
    <who name="Jussi Kukkonen (jku)">jussi.kukkonen</who>
    <bug_when>2012-10-12 02:40:23 -0700</bug_when>
    <thetext>For reference I&apos;ll point out that the test actually enforces non-compliant behaviour, as far as I can see. 307 on a POST should not be followed without specific user permission. Realistically I think breaking spec might be fine though: it&apos;s not like most users are going to understand the implications of POST redirect so asking them is not going to be very useful.

So I assume libsoup is doing the right thing here but the right thing might not be what webkit wants?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>740925</commentid>
    <comment_count>4</comment_count>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2012-10-12 08:21:49 -0700</bug_when>
    <thetext>Here&apos;s the original bug (I think) for reference: https://bugs.webkit.org/show_bug.cgi?id=60440</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>741958</commentid>
    <comment_count>5</comment_count>
    <who name="Dan Winship">danw</who>
    <bug_when>2012-10-15 05:06:35 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; For reference I&apos;ll point out that the test actually enforces non-compliant behaviour, as far as I can see. 307 on a POST should not be followed without specific user permission. Realistically I think breaking spec might be fine though: it&apos;s not like most users are going to understand the implications of POST redirect so asking them is not going to be very useful.
&gt; 
&gt; So I assume libsoup is doing the right thing here but the right thing might not be what webkit wants?

Right. Essentially, WebKit is deciding that, in the context of browsing the web, automatically reposting on 307 is the behavior the user wants/expects, but libsoup, being more general-purpose, isn&apos;t going to do it because, eg, maybe it wouldn&apos;t be right when doing XMLRPC.

I think there&apos;s discussion of this somewhere on some other bug, but basically ResourceHandleSoup needs to notice this case itself in closeCallback() (I think?), and send a second request itself in that case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>805256</commentid>
    <comment_count>6</comment_count>
    <who name="Dan Winship">danw</who>
    <bug_when>2013-01-11 07:22:24 -0800</bug_when>
    <thetext>fixed by the redirection-handling changes in bug 88961

*** This bug has been marked as a duplicate of bug 88961 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>