<?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>5942</bug_id>
          
          <creation_ts>2008-08-07 17:20:22 +0000</creation_ts>
          <short_desc>Crash when a URI path contains some invalid characters</short_desc>
          <delta_ts>2008-09-25 09:43:00 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>mobileOK Basic checker</product>
          <component>Java Library</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</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>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="fd">fd</reporter>
          <assigned_to name="Abel Rionda">abel.rionda</assigned_to>
          
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>21465</commentid>
    <comment_count>0</comment_count>
    <who name="fd">fd</who>
    <bug_when>2008-08-07 17:20:22 +0000</bug_when>
    <thetext>Description
-----------
A page that contains an image whose URI contains invalid character may crash the checker. In particular, the presence of the characters &quot;[&quot; and &quot;]&quot; (which are not allowed in the path part of a URI as defined in RFC3986) trigger the crash.

The crash occurs because the XSLT function resolve-uri expects its parameters to be valid.


Example
-------
An image that defines:
 &lt;img src=&quot;/test[gen-delim]&quot; alt=&quot;test&quot; width=&quot;2&quot; height=&quot;3&quot; /&gt;
(the width and height must be defined otherwise the check is not performed...)

raises the following exception:

Error on line 112 of file:/home/fdaoust/w3c/DEV/2007/mobileok-ref/build/org/w3c/mwi/mobileok/basic/xslt/functions.xsl:
  FORG0002: Base URI {http://localhost:8001/mobileok...} is invalid: Illegal character in
  path at index 5: /test[sub-delim
Exception in thread &quot;main&quot; org.w3c.mwi.mobileok.basic.TestException: ImagesSpecifySizeTest</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22040</commentid>
    <comment_count>1</comment_count>
    <who name="Abel Rionda">abel.rionda</who>
    <bug_when>2008-09-25 09:43:00 +0000</bug_when>
    <thetext>We replaced iri-to-uri function with encode-for-uri since this last one seems to be more complete.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>