cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 14700] New: - [Patch] IOUtils.java recognize .. in Path
Date Wed, 20 Nov 2002 09:00:15 GMT
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=14700>.
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=14700

[Patch] IOUtils.java recognize .. in Path

           Summary: [Patch] IOUtils.java recognize .. in Path
           Product: Cocoon 2
           Version: Current CVS
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: core
        AssignedTo: cocoon-dev@xml.apache.org
        ReportedBy: michael.enke@wincor-nixdorf.com


In the method normalizedFilename a construct like
1) org/apache/cocoon/www/aaa/../bbb
will be transformed into
2) org/apache/cocoon/www/aaa/___/bbb.
A construct like 1) ever occurs if you mount a sitemap for match "aaa"
and in the mounted sitemap you have e.g.
<map:generate src="../bbb/j.xsp" type=serverpages"/>
That means that for every mounted sitemaps which requests "../bbb/j.xsp"
below work-dir a separate j_xsp.java will be generated and compiled even if
the contents is identical (except the package name).
This patch recognizes the ".." in path name and results in
3) org/apache/cocoon/www/bbb
so that every match even for different path gets the same source.

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message