DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10629>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10629

include directive fails when referencing Parent Path within a WAR

[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[EMAIL PROTECTED]
             Status|RESOLVED                    |REOPENED
         Resolution|DUPLICATE                   |
            Version|4.1.7                       |4.1.8



------- Additional Comments From [EMAIL PROTECTED]  2002-07-24 08:59 -------
Andrew Harris was correct in that the fix for 10711 did not fix the problem 
for includes of files with extensions other than *.jsp.


Here is a patch that solves the problem within the 
JspCompilationContext.java.  If the getResource method should already be 
recieving a canonical name, as Remy suggests, then maybe a utility class is 
needed for relative path resolution, instead of duplicating the canonicalURI 
method to multiple locations.


--- JspCompilationContext.old   2002-07-24 02:12:00.000000000 -0400
+++ JspCompilationContext.java  2002-07-24 04:18:17.000000000 -0400
@@ -227,12 +227,12 @@
      *         as an InputStream.
      */
     public java.io.InputStream getResourceAsStream(String res) {
-        return context.getResourceAsStream(res);
+        return context.getResourceAsStream(canonicalURI(res));
     }
 
 
     public URL getResource(String res) throws MalformedURLException {
-        return context.getResource(res);
+        return context.getResource(canonicalURI(res));
     }
 
     /**

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

Reply via email to