<?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>207016</bug_id>
          
          <creation_ts>2020-01-30 13:55:57 -0800</creation_ts>
          <short_desc>[GTK] http/tests/misc/form-submit-file-cross-site-redirect.html fails with incomplete form data</short_desc>
          <delta_ts>2020-02-14 13:28:16 -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>Tools / Tests</component>
          <version>Other</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Lauro Moura">lmoura</reporter>
          <assigned_to name="Lauro Moura">lmoura</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>clopez</cc>
    
    <cc>commit-queue</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1613127</commentid>
    <comment_count>0</comment_count>
    <who name="Lauro Moura">lmoura</who>
    <bug_when>2020-01-30 13:55:57 -0800</bug_when>
    <thetext>With b206517 fixed, this test submits the test file metadata correctly (like the non-redirect version) but no payload is sent.


--- /home/lauro/dev/WebKit/layout-test-results/http/tests/misc/form-submit-file-cross-site-redirect-expected.txt
+++ /home/lauro/dev/WebKit/layout-test-results/http/tests/misc/form-submit-file-cross-site-redirect-actual.txt
@@ -2,6 +2,6 @@
 This tests verifies the test file included in the multipart form data:
 
 PASS: File is present
 PASS: File upload was successful
-PASS: File size is greater than 0
+FAIL: File size is 0
 


Payload with `var_dump($_FILES[&apos;data&apos;]);` in the PHP script:

```
array(5) {
  [&quot;name&quot;]=&gt;
  string(8) &quot;test.tmp&quot;
 [&quot;type&quot;]=&gt;
  string(24) &quot;application/octet-stream&quot;
  [&quot;tmp_name&quot;]=&gt;
  string(14) &quot;/tmp/php0dQ3qM&quot;
  [&quot;error&quot;]=&gt;
  int(0)
  [&quot;size&quot;]=&gt;
  int(0)
}
```

Using the original test from Julio in b201950[1] with Minibrowser it seems to work normally.

[1] https://redirection-experiment.herokuapp.com/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1613988</commentid>
    <comment_count>1</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2020-02-03 09:10:30 -0800</bug_when>
    <thetext>(In reply to Lauro Moura from comment #0)
&gt; With b206517 fixed
tips:
- instead of &quot; b206517 &quot; use format: &quot; bug 206517 &quot; so bugzilla makes automatic links
- if the bug its related to GTK or WPE releated, always CC the virtual user bugs-noreply@webkitgtk.org</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1619136</commentid>
    <comment_count>2</comment_count>
      <attachid>390796</attachid>
    <who name="Lauro Moura">lmoura</who>
    <bug_when>2020-02-14 12:29:51 -0800</bug_when>
    <thetext>Created attachment 390796
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1619163</commentid>
    <comment_count>3</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2020-02-14 13:26:57 -0800</bug_when>
    <thetext>The commit-queue encountered the following flaky tests while processing attachment 390796:

editing/spelling/spellcheck-async-remove-frame.html bug 158401 (authors: morrita@google.com, rniwa@webkit.org, and tony@chromium.org)
The commit-queue is continuing to process your patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1619164</commentid>
    <comment_count>4</comment_count>
      <attachid>390796</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2020-02-14 13:27:38 -0800</bug_when>
    <thetext>Comment on attachment 390796
Patch

Clearing flags on attachment: 390796

Committed r256638: &lt;https://trac.webkit.org/changeset/256638&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1619165</commentid>
    <comment_count>5</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2020-02-14 13:27:39 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1619166</commentid>
    <comment_count>6</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-02-14 13:28:16 -0800</bug_when>
    <thetext>&lt;rdar://problem/59469874&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>390796</attachid>
            <date>2020-02-14 12:29:51 -0800</date>
            <delta_ts>2020-02-14 13:27:38 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-207016-20200214172950.patch</filename>
            <type>text/plain</type>
            <size>1559</size>
            <attacher name="Lauro Moura">lmoura</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjU2NjMzCmRpZmYgLS1naXQgYS9MYXlvdXRUZXN0cy9DaGFu
Z2VMb2cgYi9MYXlvdXRUZXN0cy9DaGFuZ2VMb2cKaW5kZXggYmIyOWU2ZGYyZDNmMDBiMTllOGE4
NWEwZmJhOWJkMTBhMzUwMDYxMy4uZjVkNTNjNTAxYmEzYzYxODBlOWVlMzUzNTY2NGUyMDJjYWMy
Y2ViNiAxMDA2NDQKLS0tIGEvTGF5b3V0VGVzdHMvQ2hhbmdlTG9nCisrKyBiL0xheW91dFRlc3Rz
L0NoYW5nZUxvZwpAQCAtMSwzICsxLDE0IEBACisyMDIwLTAyLTE0ICBMYXVybyBNb3VyYSAgPGxt
b3VyYUBpZ2FsaWEuY29tPgorCisgICAgICA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