[ http://nagoya.apache.org/jira/browse/XALANJ-954?page=history ]

Henry Zongaro updated XALANJ-954:
---------------------------------

    Priority: Minor

> document function and uri's beginning with slash
> ------------------------------------------------
>
>          Key: XALANJ-954
>          URL: http://nagoya.apache.org/jira/browse/XALANJ-954
>      Project: XalanJ2
>         Type: Bug
>   Components: XSLTC
>     Versions: CurrentCVS
>  Environment: Operating System: All
> Platform: All
>     Reporter: Peter Dutton
>     Assignee: Todd Miller
>     Priority: Minor

>
> If the uri specified in the document() function begins with '/', it is taken 
> to 
> be an absolute uri when it shouldn't.  For example, when the base uri is 
> http://someserver/path/file.xsl, the function document
> ('/otherpath/otherfile.xsl') should look for the 
> uri "http://someserver/otherpath/otherfile.xsl"; but instead it looks 
> for "/otherpath/otherfile.xsl" which is taken to be a file on the local 
> system.
> It looks like the issue is in org.apache.xalan.xsltc.dom.LoadDocument.  
> Instead 
> of checking to see if the uri starts with a slash (other checks seem valid) 
> and 
> then just concating the base and the uri, it should skip the check.  Also, 
> simply concating the results will not yield the correct results, so perhaps 
> creating a java.net.URL from the base, and then using this to construct 
> another 
> URL for the result would be the easiest:
>     java.net.URL url1 = new java.net.URL(base);
>     java.net.URL url2 = new java.net.URL(url1, uri);
>     uri = url2.toString()

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to