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

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>30078</bug_id>
          
          <creation_ts>2017-03-23 18:36:27 +0000</creation_ts>
          <short_desc>fn-unparsed-text-054 depends on external resource</short_desc>
          <delta_ts>2017-11-06 16:19:46 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>XQuery 3 &amp; XPath 3 Test Suite</component>
          <version>Candidate Recommendation</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></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Josh Spiegel">josh.spiegel</reporter>
          <assigned_to name="O&apos;Neil Delpratt">oneil</assigned_to>
          <cc>christian.gruen</cc>
    
    <cc>mike</cc>
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>128498</commentid>
    <comment_count>0</comment_count>
    <who name="Josh Spiegel">josh.spiegel</who>
    <bug_when>2017-03-23 18:36:27 +0000</bug_when>
    <thetext>&lt;test-case name=&quot;fn-unparsed-text-054&quot; xmlns=&quot;http://www.w3.org/2010/09/qt-fots-catalog&quot;&gt;
      &lt;description&gt;Test the stability of the &quot;unparsed-text&quot; function&lt;/description&gt;
      &lt;created by=&quot;Michael Kay&quot; on=&quot;2016-12-28&quot;/&gt;
      &lt;test&gt;&lt;![CDATA[
         for $t1 in unparsed-text(&apos;http://date.jsontest.com&apos;) return
         every $i in 1 to 50 satisfies unparsed-text(translate(concat(&apos;http://date.jsontest.com&apos;, $i), &apos;0123456789&apos;, &apos;&apos;)) eq $t1 
      ]]&gt;&lt;/test&gt;
      &lt;result&gt;
         &lt;assert-true/&gt;
      &lt;/result&gt;
&lt;/test-case&gt;

This test seems to depend on resolving an external http resource.  There are two problems with this:

(1) implementations aren&apos;t required to support this
(2) this makes the test suite depend on external resources</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128499</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2017-03-23 20:02:02 +0000</bug_when>
    <thetext>Those criticisms are valid, but can you think of any other way of constructing a test case that demonstrates that the result is stable when the contents of the relevant resource are constantly changing?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128500</commentid>
    <comment_count>2</comment_count>
    <who name="Josh Spiegel">josh.spiegel</who>
    <bug_when>2017-03-23 20:12:34 +0000</bug_when>
    <thetext>No, unfortunately I can not.  I suppose this may be yet another untestable aspect of our specifications.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128501</commentid>
    <comment_count>3</comment_count>
    <who name="Josh Spiegel">josh.spiegel</who>
    <bug_when>2017-03-23 20:18:10 +0000</bug_when>
    <thetext>If you really want to keep it, can you put it under a feature flag?  I don&apos;t want my test harness to depend on an internet connection.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128642</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2017-06-14 09:18:23 +0000</bug_when>
    <thetext>The WG agreed to add a new feature flag and this has been done.

      &lt;dependencies&gt;
         &lt;dependency type=&quot;feature&quot; name=&quot;remote_http&quot;/&gt;
      &lt;/dependencies&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128959</commentid>
    <comment_count>5</comment_count>
    <who name="Christian Gruen">christian.gruen</who>
    <bug_when>2017-11-06 16:19:46 +0000</bug_when>
    <thetext>This test case may return »This application is temporarily over its serving quota. Please try again later.«. @Michael: Could the number of http call be reduced?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>