<?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>143484</bug_id>
          
          <creation_ts>2015-04-07 10:16:51 -0700</creation_ts>
          <short_desc>[Win] Bots complain about missing /etc/catalog</short_desc>
          <delta_ts>2016-02-01 15:43:52 -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>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Windows 7</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=143463</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=153683</see_also>
          <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="Chris Dumez">cdumez</reporter>
          <assigned_to name="Brent Fulgham">bfulgham</assigned_to>
          <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>cdumez</cc>
    
    <cc>commit-queue</cc>
    
    <cc>glenn</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1083333</commentid>
    <comment_count>0</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2015-04-07 10:16:51 -0700</bug_when>
    <thetext>Bots complain about missing /etc/catalog:
476 2928 worker/0 http/tests/security/xss-DENIED-xsl-external-entity-redirect.xml passed
18:00:06.538 2928 worker/0 http/tests/security/xss-DENIED-xsl-external-entity.xml output stderr lines:
18:00:06.538 2928   ERROR: Failed to create path /tmp/DumpRenderTree-1sDSaK\Databases
18:00:06.538 2928   ..\platform\win\FileSystemWin.cpp(212) : WebCore::makeAllDirectories
18:00:06.538 2928   ERROR: Failed to create path /tmp/DumpRenderTree-1sDSaK\Databases
18:00:06.538 2928   ..\platform\win\FileSystemWin.cpp(212) : WebCore::makeAllDirectories
18:00:06.538 2928   LEAK: 3 CachedPage
18:00:06.538 2928   LEAK: 218 CachedResource
18:00:06.538 2928   LEAK: 4 CachedFrame
18:00:06.538 2928   LEAK: 7 Frame
18:00:06.538 2928   LEAK: 242 WebCoreNode
18:00:06.538 2928   LEAK: 46 RenderObject
18:00:06.538 2928   LEAK: 6 Page
18:00:06.538 2928   file:///C:/Program%20Files%20(x86)/Common%20Files/Apple/Apple%20Application%20Support/../etc/catalog:1: parser error : Document is empty
18:00:06.538 2928   
18:00:06.538 2928   ^
18:00:06.538 2928   file:///C:/Program%20Files%20(x86)/Common%20Files/Apple/Apple%20Application%20Support/../etc/catalog:1: parser error : Start tag expected, &apos;&lt;&apos; not found
18:00:06.538 2928   
18:00:06.538 2928   ^
18:00:06.538 2928   compilation error: file http://127.0.0.1:8000/security/xss-DENIED-xsl-document-securityOrigin.xml line 2 element stylesheet
18:00:06.538 2928   xsl:version: only 1.0 features are supported
18:00:06.538 2928   compilation error: file http://127.0.0.1:8000/security/xss-DENIED-xsl-document-securityOrigin.xml line 2 element stylesheet
18:00:06.538 2928   xsl:version: only 1.0 features are supported
18:00:06.538 2928   compilation error: file http://127.0.0.1:8000/security/xss-DENIED-xsl-document-securityOrigin.xml line 2 element stylesheet
18:00:06.538 2928   xsl:version: only 1.0 features are supported
18:00:06.538 2928 worker/0 http/tests/security/xss-DENIED-xsl-external-entity.xml passed

It can apparently cause tests to fail sometimes:
http://webkit-test-results.appspot.com/dashboards/flakiness_dashboard.html#showExpectations=true&amp;tests=http%2Ftests%2Fsecurity%2Fxss-DENIED-xsl-external-entity-redirect.xml

Radar: &lt;rdar://problem/4292995&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1083348</commentid>
    <comment_count>1</comment_count>
      <attachid>250276</attachid>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2015-04-07 10:53:50 -0700</bug_when>
    <thetext>Created attachment 250276
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1083350</commentid>
    <comment_count>2</comment_count>
      <attachid>250276</attachid>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2015-04-07 10:55:00 -0700</bug_when>
    <thetext>Comment on attachment 250276
Patch

r=me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1083353</commentid>
    <comment_count>3</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2015-04-07 11:07:46 -0700</bug_when>
    <thetext>Committed r182481: &lt;http://trac.webkit.org/changeset/182481&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1083400</commentid>
    <comment_count>4</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2015-04-07 13:25:47 -0700</bug_when>
    <thetext>Did you confirm it worked locally?

It looks like it is still happening on the bots:
11:32:17.829 2580   file:///C:/Program%20Files%20(x86)/Common%20Files/Apple/Apple%20Application%20Support/../etc/catalog:1: parser error : Document is empty
11:32:17.829 2580   
11:32:17.829 2580   ^
11:32:17.829 2580   file:///C:/Program%20Files%20(x86)/Common%20Files/Apple/Apple%20Application%20Support/../etc/catalog:1: parser error : Start tag expected, &apos;&lt;&apos; not found
11:32:17.829 2580   
11:32:17.829 2580   ^

see:
https://build.webkit.org/builders/Apple%20Win%207%20Debug%20%28Tests%29/builds/65586/steps/layout-test/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1083442</commentid>
    <comment_count>5</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2015-04-07 14:38:57 -0700</bug_when>
    <thetext>Because the httpd servers on the Windows bots run as a user, and are not launched directly from the command line, I think their environment doesn&apos;t pick up these updated settings.

I&apos;m trying an experiment where I set this environment variable in the web server user&apos;s environment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1083451</commentid>
    <comment_count>6</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2015-04-07 15:04:58 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; Because the httpd servers on the Windows bots run as a user, and are not
&gt; launched directly from the command line, I think their environment doesn&apos;t
&gt; pick up these updated settings.
&gt; 
&gt; I&apos;m trying an experiment where I set this environment variable in the web
&gt; server user&apos;s environment.

This didn&apos;t work, either. I can now see in the log file that the environment variable is being set properly, but this doesn&apos;t seem to be having the desired effect.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1083639</commentid>
    <comment_count>7</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2015-04-08 09:55:04 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; (In reply to comment #5)
&gt; &gt; Because the httpd servers on the Windows bots run as a user, and are not
&gt; &gt; launched directly from the command line, I think their environment doesn&apos;t
&gt; &gt; pick up these updated settings.
&gt; &gt; 
&gt; &gt; I&apos;m trying an experiment where I set this environment variable in the web
&gt; &gt; server user&apos;s environment.
&gt; 
&gt; This didn&apos;t work, either. I can now see in the log file that the environment
&gt; variable is being set properly, but this doesn&apos;t seem to be having the
&gt; desired effect.

This actually makes sense. If the XML_CATALOG_FILES is not set, it attempts to find the file at a relative path from libxml2.dll (../etc/catalog).

I just tried setting XML_CATALOG_FILES to point at the Cygwin version of this file. If that works, we can look at adding the catalog file to our WebKitAuxLibraries bundle.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>250276</attachid>
            <date>2015-04-07 10:53:50 -0700</date>
            <delta_ts>2015-04-07 10:55:00 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-143484-20150407110315.patch</filename>
            <type>text/plain</type>
            <size>2050</size>
            <attacher name="Brent Fulgham">bfulgham</attacher>
            
              <data encoding="base64">SW5kZXg6IFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBUb29scy9DaGFuZ2VMb2cJKHJl
dmlzaW9uIDE4MjQ3OCkKKysrIFRvb2xzL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwz
ICsxLDIyIEBACisyMDE1LTA0LTA3ICBCcmVudCBGdWxnaGFtICA8YmZ1bGdoYW1AYXBwbGUuY29t
PgorCisgICAgICAgIFtXaW5dIEJvdHMgY29tcGxhaW4gYWJvdXQgbWlzc2luZyAvZXRjL2NhdGFs
b2cKKyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTE0MzQ4
NAorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAgIFRoZSBs
aWJ4bWwyIGJ1aWxkIG9uIE1hYywgaU9TLCBhbmQgV2luZG93cyBkb2VzIG5vdCBwcm92aWRlIHRo
ZSBzZXQKKyAgICAgICAgb2YgZGVmYXVsdCBjYXRhbG9nIGZpbGVzLiBXZSBkbyBub3QgYWN0dWFs
bHkgbmVlZCB0aGVzZSBmb3Igb3VyCisgICAgICAgIHB1cnBvc2VzLCBidXQgd2UgZ2V0IHdhcm5p
bmdzIGFuZCBzb21lIGJvdCBmbGFraW5lc3MgYmVjYXVzZSB0aGV5CisgICAgICAgIGFyZSBub3Qg
cHJlc2VudC4KKworICAgICAgICBXZSBjYW4gYXZvaWQgYm90aCBwcm9ibGVtcyB0aGUgc2FtZSB3
YXkgdGhlIE1hYyBhbmQgaU9TIHBvcnRzIGRvLAorICAgICAgICBieSBzZXR0aW5nIHRoZSBYTUxf
Q0FUQUxPR19GSUxFUyBlbnZpcm9ubWVudCB2YXJpYWJsZSB0byAnZW1wdHkgc3RyaW5nJywKKy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MTEgQEAgY2xhc3MgV2luUG9ydChBcHBsZVBvcnQpOgogICAgICAgICBmYWxsYmFja19u
YW1lcy5hcHBlbmQoJ21hYycpCiAgICAgICAgIHJldHVybiBtYXAoc2VsZi5fd2Via2l0X2Jhc2Vs
aW5lX3BhdGgsIGZhbGxiYWNrX25hbWVzKQogCisgICAgZGVmIHNldHVwX2Vudmlyb25fZm9yX3Nl
cnZlcihzZWxmLCBzZXJ2ZXJfbmFtZT1Ob25lKToKKyAgICAgICAgZW52ID0gc3VwZXIoV2luUG9y
dCwgc2VsZikuc2V0dXBfZW52aXJvbl9mb3Jfc2VydmVyKHNlcnZlcl9uYW1lKQorICAgICAgICBl
bnZbJ1hNTF9DQVRBTE9HX0ZJTEVTJ10gPSAnJyAgIyB3b3JrIGFyb3VuZCBtaXNzaW5nIC9ldGMv
Y2F0YWxvZyA8cmRhcjovL3Byb2JsZW0vNDI5Mjk5NT4KKyAgICAgICAgcmV0dXJuIGVudgorCiAg
ICAgZGVmIG9wZXJhdGluZ19zeXN0ZW0oc2VsZik6CiAgICAgICAgIHJldHVybiAnd2luJwogCg==
</data>
<flag name="review"
          id="275094"
          type_id="1"
          status="+"
          setter="cdumez"
    />
          </attachment>
      

    </bug>

</bugzilla>