<?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>29934</bug_id>
          
          <creation_ts>2016-10-11 19:32:58 +0000</creation_ts>
          <short_desc>fn-parse-json-110 expects wrong result</short_desc>
          <delta_ts>2016-10-21 10:08:20 +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>andrew_coleman</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>127742</commentid>
    <comment_count>0</comment_count>
    <who name="Josh Spiegel">josh.spiegel</who>
    <bug_when>2016-10-11 19:32:58 +0000</bug_when>
    <thetext>&lt;test-case name=&quot;fn-parse-json-110&quot; xmlns=&quot;http://www.w3.org/2010/09/qt-fots-catalog&quot;&gt;
  &lt;created by=&quot;Michael Kay&quot; on=&quot;2016-09-29&quot;/&gt;
  &lt;test&gt;&lt;![CDATA[parse-json(&apos;{&quot;&apos;||codepoints-to-string((10, 37))||&apos;&quot;:&quot;x&quot;, &quot;\n%&quot;:&quot;y&quot;}&apos;, map{&apos;escape&apos;:true(), &apos;duplicates&apos;:&apos;reject&apos;})]]&gt;&lt;/test&gt;
  &lt;result&gt;
    &lt;error code=&quot;FOJS0003&quot;/&gt;
  &lt;/result&gt;
&lt;/test-case&gt;

The input to parse-json is not a valid JSON text.  From RFC7159:

&lt;quote&gt;
All Unicode characters may be placed within the
quotation marks, except for the characters that must be escaped:
quotation mark, reverse solidus, and the control characters (U+0000
through U+001F).
&lt;/quote&gt;

Therefore, passing a naked control character should raise FOJS0001.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>127892</commentid>
    <comment_count>1</comment_count>
    <who name="Andrew Coleman">andrew_coleman</who>
    <bug_when>2016-10-21 07:20:13 +0000</bug_when>
    <thetext>The WG agreed the following resolution:

ACTION A-657-15: O&apos;Neil to fix the tests mentioned in this bug report, fn-parse-json-110, bug 29934</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>127897</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2016-10-21 10:08:20 +0000</bug_when>
    <thetext>I have split the test into two, one testing for duplicates with the original intent, and one testing that raw control characters are rejected.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>