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 25270] New: - cocoonCrawler broken with infinite depth=-1
Date Sun, 07 Dec 2003 10:32:36 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=25270>.
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=25270

cocoonCrawler broken with infinite depth=-1

           Summary: cocoonCrawler broken with infinite depth=-1
           Product: Cocoon 2
           Version: Current CVS 2.1
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: general components
        AssignedTo: dev@cocoon.apache.org
        ReportedBy: pmhahn@titan.lahn.de


SYMPTOM: org.apache.cocoon.components.crawler.SimpleCocoonCrawlerImpl is broken
for infinite crawling (depth=-1).
ANALYSIS: This is because on moving on to the next level of referenced urls,
depth is decremented regardless of depth being greater zero or depth being -1 in
line 642 of SimpleCocoonCrawlerImpl.java.
SOLUTION: Either only decrement "cocoonCrawler.depth" only when it's greater
zero or fix the test in line 653 from "cocoonCrawler.depth == -1 ||
cocoonCrawler.depth > 1" to "cocoonCrawler.depth != 0".

Mime
View raw message