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 26851] New: - [PATCH] LinkStatusGenerator, incorrect link content type check
Date Wed, 11 Feb 2004 10:54:25 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=26851>.
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=26851

[PATCH] LinkStatusGenerator, incorrect link content type check

           Summary: [PATCH] LinkStatusGenerator, incorrect link content type
                    check
           Product: Cocoon 2
           Version: 2.1.3
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: sitemap components
        AssignedTo: dev@cocoon.apache.org
        ReportedBy: m_rolappe@web.de
                CC: m_rolappe@web.de


when trying out the link status sample under Tomcat I only get the status of the
starting link.

when checking the link content type an exact string match is done. but (as in my
case) e.g. the charset might also be added by the container to the content type
and leads the comparison to fail.

the attached patch simply changes equals() to startsWith() when comparing.

Mime
View raw message