<?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>30316</bug_id>
          
          <creation_ts>2018-11-07 19:36:54 +0000</creation_ts>
          <short_desc>[FO31] percent encoding rules in F&amp;O for fn:resolve-uri are opposite to the same rules in XP31</short_desc>
          <delta_ts>2018-11-07 19:36:54 +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>Functions and Operators 3.1</component>
          <version>Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Abel Braaksma">abel.online</reporter>
          <assigned_to name="Michael Kay">mike</assigned_to>
          
          
          <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>129382</commentid>
    <comment_count>0</comment_count>
    <who name="Abel Braaksma">abel.online</who>
    <bug_when>2018-11-07 19:36:54 +0000</bug_when>
    <thetext>In F&amp;O 3.1 we say &quot;No percent encoding takes place&quot; under the section of fn:resolve-uri.

In the XPath 3.1 spec, we say under &quot;2.4.6 Resolving a Relative URI Reference&quot;:

&quot;Any process that attempts to resolve URI against a base URI, or to dereference the URI, may apply percent-encoding or decoding as defined in the relevant RFCs. &quot;


Apart from the type (&quot;resolve *a* URI&quot;), this rule appears to be opposite to the one under fn:resolve-uri. Even more so, because sections that involve resolving URIs often point to either location.

Furthermore: test-case &apos;fn-resolve-uri-31&apos; explicitly tests that no percent decoding should take place.

Both rules, same wording, were also present in XP30 and FO30.

The question now is: which rule has prevalence? May processors apply percent-de-/encoding? From relevant discussions I think the answer should be a resounding &quot;NO&quot;, but since both specs have REC status, I don&apos;t know what the policy is here. Disallowing it could break existing processors. Allowing it wouldn&apos;t break anything, because of the &quot;MAY&quot;.

Since resolving URIs is essentially everywhere, I marked the bug &quot;major&quot;.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>