<?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>176541</bug_id>
          
          <creation_ts>2017-09-07 10:36:55 -0700</creation_ts>
          <short_desc>[Win] tests/security/contentSecurityPolicy/report-only.php is flaky.</short_desc>
          <delta_ts>2017-09-27 13:02:44 -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>Tools / Tests</component>
          <version>WebKit Nightly Build</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="Per Arne Vollan">pvollan</reporter>
          <assigned_to name="Per Arne Vollan">pvollan</assigned_to>
          <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>buildbot</cc>
    
    <cc>commit-queue</cc>
    
    <cc>dbates</cc>
    
    <cc>lforschler</cc>
    
    <cc>mkwst</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1346395</commentid>
    <comment_count>0</comment_count>
    <who name="Per Arne Vollan">pvollan</who>
    <bug_when>2017-09-07 10:36:55 -0700</bug_when>
    <thetext>From the httpd error log:

[Thu Sep 07 01:50:11.131370 2017] [:error] [pid 4576:tid 824] [client 127.0.0.1:61925] PHP Warning:  rename(C:\\Users\\buildbot\\AppData\\Local\\Temp/-security-contentSecurityPolicy-report-only.php.csp-report.txt.tmp,C:\\Users\\buildbot\\AppData\\Local\\Temp/-security-contentSecurityPolicy-report-only.php.csp-report.txt): The process cannot access the file because it is being used by another process. (code: 32) in C:\\cygwin\\home\\buildbot\\slave\\win-release-tests\\build\\LayoutTests\\http\\tests\\security\\contentSecurityPolicy\\resources\\save-report.php on line 24, referer: http://127.0.0.1:8000/security/contentSecurityPolicy/report-only.php</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1346468</commentid>
    <comment_count>1</comment_count>
      <attachid>320154</attachid>
    <who name="Per Arne Vollan">pvollan</who>
    <bug_when>2017-09-07 12:20:08 -0700</bug_when>
    <thetext>Created attachment 320154
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1346469</commentid>
    <comment_count>2</comment_count>
    <who name="Per Arne Vollan">pvollan</who>
    <bug_when>2017-09-07 12:20:56 -0700</bug_when>
    <thetext>This is not the most elegant solution, maybe there are better approaches?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1346473</commentid>
    <comment_count>3</comment_count>
      <attachid>320154</attachid>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2017-09-07 12:27:42 -0700</bug_when>
    <thetext>Comment on attachment 320154
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=320154&amp;action=review

This isn&apos;t very elegant, but it&apos;s worth a try to get the Windows tests to work consistently.

&gt; LayoutTests/http/tests/security/contentSecurityPolicy/resources/save-report.php:27
&gt; +    sleep(1);

Is there a way we could do the loop for Windows only? We don&apos;t seem to need it on other platforms.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1346492</commentid>
    <comment_count>4</comment_count>
    <who name="Per Arne Vollan">pvollan</who>
    <bug_when>2017-09-07 12:47:33 -0700</bug_when>
    <thetext>(In reply to Brent Fulgham from comment #3)
&gt; Comment on attachment 320154 [details]
&gt; Patch
&gt; 
&gt; View in context:
&gt; https://bugs.webkit.org/attachment.cgi?id=320154&amp;action=review
&gt; 
&gt; This isn&apos;t very elegant, but it&apos;s worth a try to get the Windows tests to
&gt; work consistently.
&gt; 
&gt; &gt; LayoutTests/http/tests/security/contentSecurityPolicy/resources/save-report.php:27
&gt; &gt; +    sleep(1);
&gt; 
&gt; Is there a way we could do the loop for Windows only? We don&apos;t seem to need
&gt; it on other platforms.

I think we possibly can add a platform check?

Thanks for reviewing!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1346510</commentid>
    <comment_count>5</comment_count>
      <attachid>320154</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-09-07 13:13:00 -0700</bug_when>
    <thetext>Comment on attachment 320154
Patch

Clearing flags on attachment: 320154

Committed r221752: &lt;http://trac.webkit.org/changeset/221752&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1346511</commentid>
    <comment_count>6</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-09-07 13:13:02 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1353785</commentid>
    <comment_count>7</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2017-09-27 13:02:44 -0700</bug_when>
    <thetext>&lt;rdar://problem/34694536&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>320154</attachid>
            <date>2017-09-07 12:20:08 -0700</date>
            <delta_ts>2017-09-07 13:13:00 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-176541-20170907122007.patch</filename>
            <type>text/plain</type>
            <size>1738</size>
            <attacher name="Per Arne Vollan">pvollan</attacher>
            
              <data encoding="base64">SW5kZXg6IExheW91dFRlc3RzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBMYXlvdXRUZXN0cy9D
aGFuZ2VMb2c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FsdWUpCg==
</data>

          </attachment>
      

    </bug>

</bugzilla>