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: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] 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".