You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by bu...@apache.org on 2003/03/25 19:16:57 UTC

DO NOT REPLY [Bug 18331] New: - LinkRewriterTransformer ignores exclude-schemes parameter

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=18331>.
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=18331

LinkRewriterTransformer ignores exclude-schemes parameter

           Summary: LinkRewriterTransformer ignores exclude-schemes
                    parameter
           Product: Cocoon 2
           Version: Current CVS
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: sitemap components
        AssignedTo: cocoon-dev@xml.apache.org
        ReportedBy: u.cei@cbim.it


The LinkRewriterTransformer ignores exclude-schemes parameter and logs an error
whenever an HTTP URL is encountered as the value of an href attribute.
The bug is due to the fact that parameters to the getParameters and split
methods are swapped. I am attaching a patch that fixes it. Moreover, I've added
"ftp", "mailto" and "news" to the schemes that are excluded by default.